valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

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

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