anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0007-rules-automatically-online-hot-added-CPUs.patch

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