mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
selftests: check hot-pluggagble memory for memory-hotplug test
Check for hot-pluggable memory availability in prerequisite() of the memory-hotplug test. Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
This commit is contained in:
parent
593f927851
commit
a34b28c92e
1 changed files with 5 additions and 0 deletions
|
|
@ -22,6 +22,11 @@ prerequisite()
|
|||
echo $msg memory hotplug is not supported >&2
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if ! grep -q 1 $SYSFS/devices/system/memory/memory*/removable; then
|
||||
echo $msg no hot-pluggable memory >&2
|
||||
exit 0
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue