anitazha / rpms / systemd

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