Home
last modified time | relevance | path

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

/linux-6.12.1/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
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()
/linux-6.12.1/tools/power/cpupower/lib/
Dcpuidle.c296 int idlestates = 1; in cpuidle_state_count() local
309 "cpu%u/cpuidle/state%d", cpu, idlestates); in cpuidle_state_count()
310 idlestates++; in cpuidle_state_count()
312 idlestates--; in cpuidle_state_count()
313 return idlestates; in cpuidle_state_count()
/linux-6.12.1/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()