Home
last modified time | relevance | path

Searched refs:idlestates (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/tools/power/cpupower/utils/
H A Dcpuidle-info.c25 unsigned int idlestates, idlestate; in cpuidle_cpu_output() local
28 idlestates = cpuidle_state_count(cpu); in cpuidle_cpu_output()
29 if (idlestates == 0) { in cpuidle_cpu_output()
34 printf(_("Number of idle states: %d\n"), idlestates); in cpuidle_cpu_output()
36 for (idlestate = 0; idlestate < idlestates; idlestate++) { in cpuidle_cpu_output()
48 for (idlestate = 0; idlestate < idlestates; idlestate++) { in cpuidle_cpu_output()
H A Dcpuidle-set.c31 unsigned int cpu = 0, idlestate = 0, idlestates = 0; in cmd_idle_set() local
111 idlestates = cpuidle_state_count(cpu); in cmd_idle_set()
112 if (idlestates <= 0) in cmd_idle_set()
143 for (idlestate = 0; idlestate < idlestates; idlestate++) { in cmd_idle_set()
166 for (idlestate = 0; idlestate < idlestates; idlestate++) { in cmd_idle_set()
/openbmc/linux/tools/power/cpupower/lib/
H A Dcpuidle.c288 int idlestates = 1; in cpuidle_state_count() local
301 "cpu%u/cpuidle/state%d", cpu, idlestates); in cpuidle_state_count()
302 idlestates++; in cpuidle_state_count()
304 idlestates--; in cpuidle_state_count()
305 return idlestates; in cpuidle_state_count()
/openbmc/linux/tools/power/cpupower/utils/helpers/
H A Dsysfs.c358 int idlestates = 1; in sysfs_get_idlestate_count() local
371 "cpu%u/cpuidle/state%d", cpu, idlestates); in sysfs_get_idlestate_count()
372 idlestates++; in sysfs_get_idlestate_count()
374 idlestates--; in sysfs_get_idlestate_count()
375 return idlestates; in sysfs_get_idlestate_count()