Home
last modified time | relevance | path

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

/linux-6.1.9/tools/power/cpupower/utils/
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()
Dcpuidle-set.c31 unsigned int cpu = 0, idlestate = 0, idlestates = 0; in cmd_idle_set() local
113 idlestates = cpuidle_state_count(cpu); in cmd_idle_set()
114 if (idlestates <= 0) in cmd_idle_set()
145 for (idlestate = 0; idlestate < idlestates; idlestate++) { in cmd_idle_set()
168 for (idlestate = 0; idlestate < idlestates; idlestate++) { in cmd_idle_set()
/linux-6.1.9/tools/power/cpupower/lib/
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()
/linux-6.1.9/tools/power/cpupower/utils/helpers/
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()