anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

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

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