teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0008-rules-enable-memory-hotplug.patch

36e8a3
From d5215083fa1d10f1624ab2f0fb5ba420a2594938 Mon Sep 17 00:00:00 2001
36e8a3
From: Lukas Nykryn <lnykryn@redhat.com>
36e8a3
Date: Wed, 13 May 2015 16:56:44 +0200
36e8a3
Subject: [PATCH] rules: enable memory hotplug
36e8a3
36e8a3
Related: #1523227
36e8a3
---
36e8a3
 rules/40-redhat.rules | 4 ++++
36e8a3
 1 file changed, 4 insertions(+)
36e8a3
36e8a3
diff --git a/rules/40-redhat.rules b/rules/40-redhat.rules
4bff0a
index 2b494e57cf..8231caae98 100644
36e8a3
--- a/rules/40-redhat.rules
36e8a3
+++ b/rules/40-redhat.rules
36e8a3
@@ -1,3 +1,7 @@
36e8a3
 # do not edit this file, it will be overwritten on update
36e8a3
 
36e8a3
+# CPU hotadd request
36e8a3
 SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"
36e8a3
+
36e8a3
+# Memory hotadd request
36e8a3
+SUBSYSTEM=="memory", ACTION=="add", ATTR{state}=="offline", ATTR{state}="online"