Files
ack-tegra/tools/testing/selftests/cpu-hotplug
Dmytro Maluka 38dae6c1ef UPSTREAM: selftests/cpu-hotplug: Fix check for cpu hotplug not supported
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.

Bug: 510965069

Change-Id: I8d9c937f5663f7a523d940ee02f2b8fa75a999f8
Signed-off-by: Dmytro Maluka <dmaluka@chromium.org>
Link: https://lore.kernel.org/r/20260319153825.2813576-1-dmaluka@chromium.org
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
(cherry picked from commit 9d2dbd3d59)
2026-05-13 07:18:33 +00:00
..