teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0006-rules-automatically-online-hot-plugged-CPUs.patch

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