Lines Matching refs:CPU
28 NR_CPUS=$(lscpu | grep "^CPU(s):" | sed -e "s/.*:[[:space:]]*//")
67 # create partition under root cgroup because of the CPU exclusivity rule.
162 # O<c>=<v> = Write <v> to CPU online file of <c>
188 # CPU offlining cases:
278 # Local partition CPU change tests
366 CPU=${1%=*}
368 CPUFILE=//sys/devices/system/cpu/cpu${CPU}/online
371 OFFLINE_CPUS="$OFFLINE_CPUS $CPU"
374 OFFLINE_CPUS=$(echo $CPU $CPU $OFFLINE_CPUS | fmt -1 |\
600 # CPUs as well as CPUs in non-isolated 1-CPU partition. Those CPUs may
647 for ((CPU=0; CPU < $NR_CPUS; CPU++))
649 [[ -n "$(ls ${SCHED_DOMAINS}/cpu$CPU)" ]] && continue
653 ISOLCPUS=$CPU
654 LASTISOLCPU=$CPU
655 elif [[ "$LASTISOLCPU" -eq $((CPU - 1)) ]]
662 LASTISOLCPU=$CPU
668 ISOLCPUS=${ISOLCPUS},$CPU
669 LASTISOLCPU=$CPU
762 [[ $? -ne 0 ]] && test_fail $I "effective CPU"
774 [[ $? -ne 0 ]] && test_fail $I "isolated CPU" \