Home
last modified time | relevance | path

Searched refs:SYSFS (Results 1 – 2 of 2) sorted by relevance

/tools/testing/selftests/cpu-hotplug/
Don-off-test.sh3 SYSFS=
16 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
18 if [ ! -d "$SYSFS" ]; then
23 if ! ls $SYSFS/devices/system/cpu/cpu* > /dev/null 2>&1; then
29 online_cpus=`cat $SYSFS/devices/system/cpu/online`
33 offline_cpus=`cat $SYSFS/devices/system/cpu/offline`
49 for cpu in $SYSFS/devices/system/cpu/cpu*; do
68 grep -q 1 $SYSFS/devices/system/cpu/cpu$1/online
73 grep -q 0 $SYSFS/devices/system/cpu/cpu$1/online
78 echo 1 > $SYSFS/devices/system/cpu/cpu$1/online
[all …]
/tools/testing/selftests/memory-hotplug/
Don-off-test.sh3 SYSFS=
14 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
16 if [ ! -d "$SYSFS" ]; then
21 if ! ls $SYSFS/devices/system/memory/memory* > /dev/null 2>&1; then
34 for memory in $SYSFS/devices/system/memory/memory*; do
54 grep -q online $SYSFS/devices/system/memory/memory$1/state
59 grep -q offline $SYSFS/devices/system/memory/memory$1/state
64 echo online > $SYSFS/devices/system/memory/memory$1/state
69 echo offline > $SYSFS/devices/system/memory/memory$1/state