<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/tools/testing/selftests/cpu-hotplug, branch master</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2026-03-31T22:07:19+00:00</updated>
<entry>
<title>selftests/cpu-hotplug: Fix check for cpu hotplug not supported</title>
<updated>2026-03-31T22:07:19+00:00</updated>
<author>
<name>Dmytro Maluka</name>
<email>dmaluka@chromium.org</email>
</author>
<published>2026-03-19T15:38:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9d2dbd3d59d8fb9cfd98bf857975fcd151fb3946'/>
<id>urn:sha1:9d2dbd3d59d8fb9cfd98bf857975fcd151fb3946</id>
<content type='text'>
If CONFIG_HOTPLUG_CPU is disabled, /sys/devices/system/cpu/cpu*
directories are still populated, so the test fails to correctly detect
that CPU hotplug is not supported.

Fix this by checking for the presence of 'online' files in those
directories instead. The 'online' node is created for the given CPU if
and only if this CPU supports hotplug. So if none of the CPUs have
'online' nodes, it means CPU hotplug is not supported.

Signed-off-by: Dmytro Maluka &lt;dmaluka@chromium.org&gt;
Link: https://lore.kernel.org/r/20260319153825.2813576-1-dmaluka@chromium.org
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>selftests/cpu-hotplug: fix typo in hotplaggable_offline_cpus function name</title>
<updated>2025-06-17T20:12:16+00:00</updated>
<author>
<name>Jihed Chaibi</name>
<email>jihed.chaibi.dev@gmail.com</email>
</author>
<published>2025-05-23T20:22:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=44c71c16f37d5c40418801e7868b62acdcc6b701'/>
<id>urn:sha1:44c71c16f37d5c40418801e7868b62acdcc6b701</id>
<content type='text'>
Fix spelling error replacing "hotplaggable" by "hotpluggable"

Fixed change log:
Shuah Khan &lt;skhan@linuxfoundation.org&gt;

Link: https://lore.kernel.org/r/20250523202239.276760-1-jihed.chaibi.dev@gmail.com
Signed-off-by: Jihed Chaibi &lt;jihed.chaibi.dev@gmail.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>selftests/cpu-hotplug: Add log info when test success</title>
<updated>2022-10-05T17:05:18+00:00</updated>
<author>
<name>Zhao Gongyi</name>
<email>zhaogongyi@huawei.com</email>
</author>
<published>2022-09-05T13:36:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=96788ac53dbab980e2308c4dc57bea4ba8e0bd2a'/>
<id>urn:sha1:96788ac53dbab980e2308c4dc57bea4ba8e0bd2a</id>
<content type='text'>
Add log information when run full test successfully.

Signed-off-by: Zhao Gongyi &lt;zhaogongyi@huawei.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>selftests/cpu-hotplug: Reserve one cpu online at least</title>
<updated>2022-10-05T17:05:18+00:00</updated>
<author>
<name>Zhao Gongyi</name>
<email>zhaogongyi@huawei.com</email>
</author>
<published>2022-09-05T13:36:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=51d4c851465c32143d9c7b1cfb46fc581922b116'/>
<id>urn:sha1:51d4c851465c32143d9c7b1cfb46fc581922b116</id>
<content type='text'>
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: d89dffa976bc ("fault-injection: add selftests for cpu and memory hotplug")

Signed-off-by: Zhao Gongyi &lt;zhaogongyi@huawei.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>selftests/cpu-hotplug: Delete fault injection related code</title>
<updated>2022-10-05T17:05:18+00:00</updated>
<author>
<name>Zhao Gongyi</name>
<email>zhaogongyi@huawei.com</email>
</author>
<published>2022-09-05T13:36:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=195d74be717af14e5991f818f73f067367bfc1ed'/>
<id>urn:sha1:195d74be717af14e5991f818f73f067367bfc1ed</id>
<content type='text'>
Delete fault injection related code since the module has been deleted.

Signed-off-by: Zhao Gongyi &lt;zhaogongyi@huawei.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>selftests/cpu-hotplug: Use return instead of exit</title>
<updated>2022-10-05T17:05:18+00:00</updated>
<author>
<name>Zhao Gongyi</name>
<email>zhaogongyi@huawei.com</email>
</author>
<published>2022-09-05T13:36:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=972cf4ce51ef5532d56822af17defb148aac0ccb'/>
<id>urn:sha1:972cf4ce51ef5532d56822af17defb148aac0ccb</id>
<content type='text'>
Some cpus will be left in offline state when online
function exits in some error conditions. Use return
instead of exit to fix it.

Signed-off-by: Zhao Gongyi &lt;zhaogongyi@huawei.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>selftests/cpu-hotplug: Correct log info</title>
<updated>2022-10-05T17:05:18+00:00</updated>
<author>
<name>Zhao Gongyi</name>
<email>zhaogongyi@huawei.com</email>
</author>
<published>2022-09-05T13:36:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=2354edd07b2336cd3ca9d81791f9411b8fe92d6e'/>
<id>urn:sha1:2354edd07b2336cd3ca9d81791f9411b8fe92d6e</id>
<content type='text'>
Correct the log info to match the test.

Signed-off-by: Zhao Gongyi &lt;zhaogongyi@huawei.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>selftests: cpu-hotplug: fix case where CPUs offline &gt; CPUs present</title>
<updated>2019-01-25T21:57:45+00:00</updated>
<author>
<name>Colin Ian King</name>
<email>colin.king@canonical.com</email>
</author>
<published>2019-01-10T12:38:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=2b531b6137834a55857a337ac17510d6436b6fbb'/>
<id>urn:sha1:2b531b6137834a55857a337ac17510d6436b6fbb</id>
<content type='text'>
The cpu-hotplug test assumes that we can offline the maximum CPU as
described by /sys/devices/system/cpu/offline.  However, in the case
where the number of CPUs exceeds like kernel configuration then
the offline count can be greater than the present count and we end
up trying to test the offlining of a CPU that is not available to
offline.  Fix this by testing the maximum present CPU instead.

Also, the test currently offlines the CPU and does not online it,
so fix this by onlining the CPU after the test.

Fixes: d89dffa976bc ("fault-injection: add selftests for cpu and memory hotplug")
Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Shuah Khan &lt;shuah@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests: cpu-hotplug: return Kselftest Skip code for skipped tests</title>
<updated>2018-05-30T21:21:52+00:00</updated>
<author>
<name>Shuah Khan (Samsung OSG)</name>
<email>shuah@kernel.org</email>
</author>
<published>2018-05-02T22:41:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=67f721f942a83ddf492f9b72fd9c5ab148110e20'/>
<id>urn:sha1:67f721f942a83ddf492f9b72fd9c5ab148110e20</id>
<content type='text'>
When cpu-on-off-test is skipped because of unmet dependencies and/or
unsupported configuration, it returns 0 which is treated as a pass
by the Kselftest framework. This leads to false positive result even
when the test could not be run.

Change it to return kselftest skip code when a test gets skipped to
clearly report that the test could not be run.

Kselftest framework SKIP code is 4 and the framework prints appropriate
messages to indicate that the test is skipped.

Signed-off-by: Shuah Khan (Samsung OSG) &lt;shuah@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests: remove obsolete kconfig fragment for cpu-hotplug</title>
<updated>2017-11-15T15:01:43+00:00</updated>
<author>
<name>lei.yang@windriver.com</name>
<email>lei.yang@windriver.com</email>
</author>
<published>2017-10-18T02:10:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=50656ac6acfbc42d30071983205e8f6b131429e5'/>
<id>urn:sha1:50656ac6acfbc42d30071983205e8f6b131429e5</id>
<content type='text'>
Kconfig CONFIG_CPU_NOTIFIER_ERROR_INJECT has been removed since kernel 4.10
check commit:
    commit 530e9b76ae8f863dfdef4a6ad0b38613d32e8c3f
    Author: Thomas Gleixner &lt;tglx@linutronix.de&gt;
    Date:   Wed Dec 21 20:19:53 2016 +0100

        cpu/hotplug: Remove obsolete cpu hotplug register/unregister
        functions

        hotcpu_notifier(), cpu_notifier(), __hotcpu_notifier(),
        __cpu_notifier(),
        register_hotcpu_notifier(), register_cpu_notifier(),
        __register_hotcpu_notifier(), __register_cpu_notifier(),
        unregister_hotcpu_notifier(), unregister_cpu_notifier(),
        __unregister_hotcpu_notifier(), __unregister_cpu_notifier()
     &lt;snip&gt;

Signed-off-by: Lei Yang &lt;Lei.Yang@windriver.com&gt;
Signed-off-by: Shuah Khan &lt;shuahkh@osg.samsung.com&gt;
</content>
</entry>
</feed>
