]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/cpu-hotplug: Reserve one cpu online at least
authorZhao Gongyi <zhaogongyi@huawei.com>
Mon, 5 Sep 2022 13:36:14 +0000 (21:36 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 5 Oct 2022 17:05:18 +0000 (11:05 -0600)
commit073d62b118e80c76d0982b4255df1c1d2e7d99ec
treeef2fd2264577258987bd1bd216f9ba0f50484e89
parent5e58c5081adb5c87f756a9f3aa7a594697f7a75b
selftests/cpu-hotplug: Reserve one cpu online at least

Considering that we can not offline all cpus in any cases,
we need to reserve one cpu online when the test offline all
hotpluggable online cpus, otherwise the test will fail forever.

Fixes: 33c268101094 ("fault-injection: add selftests for cpu and memory hotplug")
Signed-off-by: Zhao Gongyi <zhaogongyi@huawei.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh