Searched refs:SYSFS (Results 1 – 5 of 5) sorted by relevance
4 SYSFS=17 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`19 if [ ! -d "$SYSFS" ]; then24 if ! ls $SYSFS/devices/system/cpu/cpu* > /dev/null 2>&1; then30 online_cpus=`cat $SYSFS/devices/system/cpu/online`38 present_cpus=`cat $SYSFS/devices/system/cpu/present`44 offline_cpus=`cat $SYSFS/devices/system/cpu/offline`60 for cpu in $SYSFS/devices/system/cpu/cpu*; do79 grep -q 1 $SYSFS/devices/system/cpu/cpu$1/online84 grep -q 0 $SYSFS/devices/system/cpu/cpu$1/online[all …]
4 SYSFS=15 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`17 if [ ! -d "$SYSFS" ]; then22 if ! ls $SYSFS/devices/system/memory/memory* > /dev/null 2>&1; then27 if ! grep -q 1 $SYSFS/devices/system/memory/memory*/removable; then40 for memory in $SYSFS/devices/system/memory/memory*; do60 grep -q online $SYSFS/devices/system/memory/memory$1/state65 grep -q offline $SYSFS/devices/system/memory/memory$1/state70 echo online > $SYSFS/devices/system/memory/memory$1/state75 echo offline > $SYSFS/devices/system/memory/memory$1/state
211 if [ ! -d $SYSFS/power/ -o ! -f $SYSFS/power/state ]; then212 printf "$SYSFS/power/state not available\n"226 present=$(cat $SYSFS/power/state | grep $filename)229 printf "Tried to $1 but $filename isn't present in $SYSFS/power/state\n"235 echo $filename > $SYSFS/power/state
12 SYSFS=46 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`48 if [ ! -d "$SYSFS" ]; then53 CPUROOT=$SYSFS/devices/system/cpu
10 SYSFS=39 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`40 if [ ! -d "$SYSFS" ]; then44 GPIO_SYSFS=`echo $SYSFS/class/gpio`45 GPIO_DRV_SYSFS=`echo $SYSFS/devices/platform/$module/gpio`