Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/cpu-hotplug/
H A 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/tools/power/cpupower/utils/helpers/
H A Dmisc.c172 bitmask_clearall(offline_cpus); in get_cpustate()
180 bitmask_setbit(offline_cpus, cpu); in get_cpustate()
213 str_len = offline_cpus->size * 5; in print_offline_cpus()
216 if (!bitmask_isallclear(offline_cpus)) { in print_offline_cpus()
217 bitmask_displaylist(offline_cpus_str, str_len, offline_cpus); in print_offline_cpus()
H A Dhelpers.h214 extern struct bitmask *offline_cpus;
/linux/tools/power/cpupower/utils/
H A Dcpupower.c38 struct bitmask *offline_cpus; variable
185 offline_cpus = bitmask_alloc(sysconf(_SC_NPROCESSORS_CONF)); in main()
240 if (offline_cpus) in main()
241 bitmask_free(offline_cpus); in main()