daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
a19bc6
From f8747430762d9daad14f71cdd7ee98daf833e161 Mon Sep 17 00:00:00 2001
a19bc6
From: Lukas Nykryn <lnykryn@redhat.com>
a19bc6
Date: Tue, 27 Jun 2017 09:21:19 +0200
a19bc6
Subject: [PATCH] Revert "rules: move cpu hotplug rule to separate file"
a19bc6
a19bc6
This reverts commit 360d7eb0f8233d16557ef34a9e58055a67ea9b70.
a19bc6
Resolves: #1465108
a19bc6
---
a19bc6
 Makefile.am                       | 1 -
a19bc6
 rules/40-redhat-cpu-hotplug.rules | 4 ----
a19bc6
 rules/40-redhat.rules             | 3 +++
a19bc6
 3 files changed, 3 insertions(+), 5 deletions(-)
a19bc6
 delete mode 100644 rules/40-redhat-cpu-hotplug.rules
a19bc6
a19bc6
diff --git a/Makefile.am b/Makefile.am
181b3f
index 94fee02c5..e9ceac98a 100644
a19bc6
--- a/Makefile.am
a19bc6
+++ b/Makefile.am
a19bc6
@@ -3511,7 +3511,6 @@ dist_udevrules_DATA += \
a19bc6
 	rules/80-net-setup-link.rules \
a19bc6
 	rules/95-udev-late.rules \
a19bc6
 	rules/40-redhat.rules \
a19bc6
-	rules/40-redhat-cpu-hotplug.rules \
a19bc6
 	rules/73-idrac.rules \
a19bc6
         rules/80-net-name-slot.rules
a19bc6
 
a19bc6
diff --git a/rules/40-redhat-cpu-hotplug.rules b/rules/40-redhat-cpu-hotplug.rules
a19bc6
deleted file mode 100644
181b3f
index bc5ddc841..000000000
a19bc6
--- a/rules/40-redhat-cpu-hotplug.rules
a19bc6
+++ /dev/null
a19bc6
@@ -1,4 +0,0 @@
a19bc6
-# do not edit this file, it will be overwritten on update
a19bc6
-
a19bc6
-# CPU hotadd request
a19bc6
-SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"
a19bc6
diff --git a/rules/40-redhat.rules b/rules/40-redhat.rules
181b3f
index d04c7fc9a..34a1df9c4 100644
a19bc6
--- a/rules/40-redhat.rules
a19bc6
+++ b/rules/40-redhat.rules
a19bc6
@@ -1,5 +1,8 @@
a19bc6
 # do not edit this file, it will be overwritten on update
a19bc6
 
a19bc6
+# CPU hotadd request
a19bc6
+SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"
a19bc6
+
a19bc6
 # Memory hotadd request
a19bc6
 SUBSYSTEM=="memory", ACTION=="add", PROGRAM="/bin/uname -p", RESULT!="s390*", ATTR{state}=="offline", ATTR{state}="online"
a19bc6