projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cpupower: Make idlestate usage unsigned
[linux-2.6-microblaze.git]
/
tools
/
power
/
cpupower
/
utils
/
helpers
/
sysfs.c
diff --git
a/tools/power/cpupower/utils/helpers/sysfs.c
b/tools/power/cpupower/utils/helpers/sysfs.c
index
38ab916
..
891f671
100644
(file)
--- a/
tools/power/cpupower/utils/helpers/sysfs.c
+++ b/
tools/power/cpupower/utils/helpers/sysfs.c
@@
-238,7
+238,7
@@
char *sysfs_get_idlestate_desc(unsigned int cpu, unsigned int idlestate)
* Negativ in error case
* Zero if cpuidle does not export any C-states
*/
-int sysfs_get_idlestate_count(unsigned int cpu)
+
unsigned
int sysfs_get_idlestate_count(unsigned int cpu)
{
char file[SYSFS_PATH_MAX];
struct stat statbuf;