richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
1ff636
From cb0c7e5445624b7bc67fc4c10a91d5cf3dd6ce6f Mon Sep 17 00:00:00 2001
1ff636
From: Michal Sekletar <msekleta@redhat.com>
1ff636
Date: Mon, 22 Sep 2014 07:41:06 +0200
1ff636
Subject: [PATCH] rules: automatically online hot-added CPUs
1ff636
1ff636
RHEL-only patch
1ff636
1ff636
Resolves: #968811
1ff636
1ff636
Conflicts:
1ff636
	Makefile.am
1ff636
---
1ff636
 Makefile.am           | 3 ++-
1ff636
 rules/40-redhat.rules | 3 +++
1ff636
 2 files changed, 5 insertions(+), 1 deletion(-)
1ff636
 create mode 100644 rules/40-redhat.rules
1ff636
1ff636
diff --git a/Makefile.am b/Makefile.am
Pablo Greco 48fc63
index 75459f74d3..a734e9c486 100644
1ff636
--- a/Makefile.am
1ff636
+++ b/Makefile.am
1ff636
@@ -3564,7 +3564,8 @@ dist_udevrules_DATA += \
1ff636
 	rules/75-tty-description.rules \
1ff636
 	rules/78-sound-card.rules \
1ff636
 	rules/80-net-setup-link.rules \
1ff636
-	rules/95-udev-late.rules
1ff636
+	rules/95-udev-late.rules \
1ff636
+	rules/40-redhat.rules
1ff636
 
1ff636
 nodist_udevrules_DATA += \
1ff636
 	rules/99-systemd.rules
1ff636
diff --git a/rules/40-redhat.rules b/rules/40-redhat.rules
1ff636
new file mode 100644
Pablo Greco 48fc63
index 0000000000..2b494e57cf
1ff636
--- /dev/null
1ff636
+++ b/rules/40-redhat.rules
1ff636
@@ -0,0 +1,3 @@
1ff636
+# do not edit this file, it will be overwritten on update
1ff636
+
1ff636
+SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"