daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
84b277
From fa5a7d49ecbe40e2e33f1d165a4522d9b4315531 Mon Sep 17 00:00:00 2001
84b277
From: Michal Sekletar <msekleta@redhat.com>
84b277
Date: Mon, 22 Sep 2014 07:41:06 +0200
84b277
Subject: [PATCH] rules: automatically online hot-added CPUs
84b277
84b277
RHEL-only patch
84b277
84b277
Resolves: #968811
84b277
---
84b277
 Makefile.am           | 3 ++-
84b277
 rules/40-redhat.rules | 3 +++
84b277
 2 files changed, 5 insertions(+), 1 deletion(-)
84b277
 create mode 100644 rules/40-redhat.rules
84b277
84b277
diff --git a/Makefile.am b/Makefile.am
84b277
index 30ab13c..54941c0 100644
84b277
--- a/Makefile.am
84b277
+++ b/Makefile.am
84b277
@@ -2220,7 +2220,8 @@ dist_udevrules_DATA += \
84b277
 	rules/75-tty-description.rules \
84b277
 	rules/78-sound-card.rules \
84b277
 	rules/80-net-name-slot.rules \
84b277
-	rules/95-udev-late.rules
84b277
+	rules/95-udev-late.rules \
84b277
+	rules/40-redhat.rules
84b277
 
84b277
 dist_udevhwdb_DATA = \
84b277
 	hwdb/20-pci-vendor-model.hwdb \
84b277
diff --git a/rules/40-redhat.rules b/rules/40-redhat.rules
84b277
new file mode 100644
84b277
index 0000000..2b494e5
84b277
--- /dev/null
84b277
+++ b/rules/40-redhat.rules
84b277
@@ -0,0 +1,3 @@
84b277
+# do not edit this file, it will be overwritten on update
84b277
+
84b277
+SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"