cpupower: Make idlestate usage unsigned
Use unsigned int as the data type for some variables related to CPU idle states which allows the code to be simplified slightly. [rjw: Changelog] Signed-off-by: Thomas Renninger <trenn@suse.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:

committed by
Rafael J. Wysocki

parent
f991fae5c6
commit
f605181abd
@@ -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;
|
||||
|
Reference in New Issue
Block a user