From 8dc06d14d76940b3059cd6063fc7d8e7f0150271 Mon Sep 17 00:00:00 2001 From: Mete Durlu Date: Tue, 3 Jun 2025 11:42:26 +0200 Subject: [PATCH] udev: Introduce a rule to set newly hotplugged CPUs online MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On s390 architecture a newly hotplugged CPU, should only stay offline if it is on deconfigured state, otherwise it should automatically become online. Introduce a new udev rule to enforce this behavior. This rule should always be installed. Acked-by: Jan Höppner Acked-by: Heiko Carstens Signed-off-by: Mete Durlu Signed-off-by: Steffen Eiden --- etc/udev/rules.d/80-hotplug-cpu.rules | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 etc/udev/rules.d/80-hotplug-cpu.rules diff --git a/etc/udev/rules.d/80-hotplug-cpu.rules b/etc/udev/rules.d/80-hotplug-cpu.rules new file mode 100644 index 00000000..b6d3f0ea --- /dev/null +++ b/etc/udev/rules.d/80-hotplug-cpu.rules @@ -0,0 +1,4 @@ +# +# Rules to set online a newly hotplugged cpu on s390x +# +SUBSYSTEM=="cpu", ACTION=="add", CONST{arch}=="s390*", ATTR{configure}=="1", TEST=="online", ATTR{online}!="1", ATTR{online}="1"