ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
36e8a3
From 787420ac2ba9c404e13db08601946bde263523f8 Mon Sep 17 00:00:00 2001
36e8a3
From: Michal Sekletar <msekleta@redhat.com>
36e8a3
Date: Mon, 22 Sep 2014 07:41:06 +0200
36e8a3
Subject: [PATCH] rules: automatically online hot-plugged CPUs
36e8a3
36e8a3
Related: #1523227
36e8a3
---
36e8a3
 rules/40-redhat.rules | 3 +++
36e8a3
 rules/meson.build     | 1 +
36e8a3
 2 files changed, 4 insertions(+)
36e8a3
 create mode 100644 rules/40-redhat.rules
36e8a3
36e8a3
diff --git a/rules/40-redhat.rules b/rules/40-redhat.rules
36e8a3
new file mode 100644
36e8a3
index 000000000..2b494e57c
36e8a3
--- /dev/null
36e8a3
+++ b/rules/40-redhat.rules
36e8a3
@@ -0,0 +1,3 @@
36e8a3
+# do not edit this file, it will be overwritten on update
36e8a3
+
36e8a3
+SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"
36e8a3
diff --git a/rules/meson.build b/rules/meson.build
36e8a3
index b6a32ba77..e7e4362c0 100644
36e8a3
--- a/rules/meson.build
36e8a3
+++ b/rules/meson.build
36e8a3
@@ -1,6 +1,7 @@
36e8a3
 # SPDX-License-Identifier: LGPL-2.1+
36e8a3
 
36e8a3
 rules = files('''
36e8a3
+        40-redhat.rules
36e8a3
         60-block.rules
36e8a3
         60-cdrom_id.rules
36e8a3
         60-drm.rules