Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/cpu-hotplug/
Dcpu-on-off-test.sh47 offline_cpus=`cat $SYSFS/devices/system/cpu/offline`
48 if [[ "a$offline_cpus" = "a" ]]; then
49 offline_cpus=0
51 offline_max=${offline_cpus##*-}
53 echo -e "\t Cpus in offline state: $offline_cpus"
174 offline_cpus=0
205 if [[ $offline_cpus -gt 0 ]]; then
/linux-6.1.9/tools/power/cpupower/utils/helpers/
Dmisc.c117 bitmask_clearall(offline_cpus); in get_cpustate()
125 bitmask_setbit(offline_cpus, cpu); in get_cpustate()
158 str_len = offline_cpus->size * 5; in print_offline_cpus()
161 if (!bitmask_isallclear(offline_cpus)) { in print_offline_cpus()
162 bitmask_displaylist(offline_cpus_str, str_len, offline_cpus); in print_offline_cpus()
Dhelpers.h203 extern struct bitmask *offline_cpus;
/linux-6.1.9/tools/power/cpupower/utils/
Dcpupower.c38 struct bitmask *offline_cpus; variable
184 offline_cpus = bitmask_alloc(sysconf(_SC_NPROCESSORS_CONF)); in main()
239 if (offline_cpus) in main()
240 bitmask_free(offline_cpus); in main()