selftests/intel_pstate: Fix warning on loop index overflow
authorStafford Horne <shorne@gmail.com>
Wed, 11 Jan 2017 15:16:05 +0000 (00:16 +0900)
committerShuah Khan <shuahkh@osg.samsung.com>
Thu, 19 Jan 2017 17:30:34 +0000 (10:30 -0700)
commitaff985fd07cf785fbd1544194f8fae08333e523e
treee0eac4aad5df475e6ffe743abca8a48e0eb0ac85
parent4da39ceb269cee9f96815a54f97931a7e59f9e7f
selftests/intel_pstate: Fix warning on loop index overflow

The build was showing the warning:
 aperf.c:60:27: warning: iteration 2147483647 invokes undefined behavior
 [-Waggressive-loop-optimizations]
  for (i=0; i<0x8fffffff; i++) {

This change sets i, cpu and fd to unsigned int as they should not need
to be signed.

Cc: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/intel_pstate/aperf.c