From 03b37758b4606cb6a441b5dc0572e07ef7db3174d312b75ab54a784f4d2b309a Mon Sep 17 00:00:00 2001 From: Robert Milasan Date: Fri, 21 Jun 2013 13:20:36 +0000 Subject: [PATCH] Accepting request 180433 from home:rmilasan:branches:Base:System - Automatically online CPUs/Memory on CPU/Memory hotplug add events (bnc#703100, fate#311831). add: 1008-physical-hotplug-cpu-and-memory.patch 0002-journal-remember-last-direction-of-search-and-keep-o.patch fix possible infinite loops in the journal code, related to bnc #817778 - Automatically online CPUs/Memory on CPU/Memory hotplug add events (bnc#703100, fate#311831). add: 1008-physical-hotplug-cpu-and-memory.patch 0002-journal-remember-last-direction-of-search-and-keep-o.patch fix possible infinite loops in the journal code, related to bnc #817778 OBS-URL: https://build.opensuse.org/request/show/180433 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=401 --- 1008-physical-hotplug-cpu-and-memory.patch | 29 ++++++++++++++++++++++ systemd-mini.changes | 15 ++++++++--- systemd-mini.spec | 3 +++ systemd.changes | 13 +++++++--- systemd.spec | 3 +++ 5 files changed, 56 insertions(+), 7 deletions(-) create mode 100644 1008-physical-hotplug-cpu-and-memory.patch diff --git a/1008-physical-hotplug-cpu-and-memory.patch b/1008-physical-hotplug-cpu-and-memory.patch new file mode 100644 index 00000000..fa88318f --- /dev/null +++ b/1008-physical-hotplug-cpu-and-memory.patch @@ -0,0 +1,29 @@ +Index: systemd-204/Makefile.am +=================================================================== +--- systemd-204.orig/Makefile.am ++++ systemd-204/Makefile.am +@@ -2242,6 +2242,10 @@ dist_udevrules_DATA += \ + rules/61-msft.rules + + # ------------------------------------------------------------------------------ ++dist_udevrules_DATA += \ ++ rules/80-hotplug-cpu-mem.rules ++ ++# ------------------------------------------------------------------------------ + if ENABLE_GUDEV + if ENABLE_GTK_DOC + SUBDIRS += \ +Index: systemd-204/rules/80-hotplug-cpu-mem.rules +=================================================================== +--- /dev/null ++++ systemd-204/rules/80-hotplug-cpu-mem.rules +@@ -0,0 +1,9 @@ ++# do not edit this file, it will be overwritten on update ++ ++# Hotplug physical CPU ++SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", \ ++ ATTR{online}="1" ++ ++# Hotplug physical memory ++SUBSYSTEM=="memory", ACTION=="add", TEST=="state", ATTR{state}=="offline", \ ++ ATTR{state}="online" diff --git a/systemd-mini.changes b/systemd-mini.changes index 0a35d39c..8a20c41e 100644 --- a/systemd-mini.changes +++ b/systemd-mini.changes @@ -1,5 +1,12 @@ ------------------------------------------------------------------- -Wed Jun 19 08:44:52 UTC 2013 - mhrusecky@suse.com +Fri Jun 21 12:40:27 UTC 2013 - rmilasan@suse.com + +- Automatically online CPUs/Memory on CPU/Memory hotplug add events + (bnc#703100, fate#311831). + add: 1008-physical-hotplug-cpu-and-memory.patch + +------------------------------------------------------------------- +Wed Jun 19 08:44:06 UTC 2013 - mhrusecky@suse.com - Dropped backward compatibility - Added check for upstream rpm macros changes @@ -13,9 +20,9 @@ Mon Jun 18 12:13:25 UTC 2013 - mhrusecky@suse.com Tue Jun 18 00:33:10 UTC 2013 - crrodriguez@opensuse.org - 0001-journal-letting-interleaved-seqnums-go.patch and - 0002-journal-remember-last-direction-of-search-and-keep-o.patch - fix possible infinite loops in the journal code, related to - bnc #817778 + 0002-journal-remember-last-direction-of-search-and-keep-o.patch + fix possible infinite loops in the journal code, related to + bnc #817778 ------------------------------------------------------------------- Sun Jun 16 23:59:28 UTC 2013 - jengelh@inai.de diff --git a/systemd-mini.spec b/systemd-mini.spec index 024ccfed..30a76b85 100644 --- a/systemd-mini.spec +++ b/systemd-mini.spec @@ -198,6 +198,8 @@ Patch1005: 1005-create-default-links-for-primary-cd_dvd-drive.patch Patch1006: 1006-udev-always-rename-network.patch # PATCH-FIX-OPENSUSE 1007-add-msft-compability-rules.patch Patch1007: 1007-add-msft-compability-rules.patch +# PATCH-FIX-OPENSUSE 1008-physical-hotplug-cpu-and-memory.patch +Patch1008: 1008-physical-hotplug-cpu-and-memory.patch %description Systemd is a system and service manager, compatible with SysV and LSB @@ -431,6 +433,7 @@ cp %{SOURCE7} m4/ # don't apply when bootstrapping to not modify Makefile.am %if ! 0%{?bootstrap} %patch1007 -p1 +%patch1008 -p1 %endif %build diff --git a/systemd.changes b/systemd.changes index 702cc8d2..8a20c41e 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Jun 21 12:40:27 UTC 2013 - rmilasan@suse.com + +- Automatically online CPUs/Memory on CPU/Memory hotplug add events + (bnc#703100, fate#311831). + add: 1008-physical-hotplug-cpu-and-memory.patch + ------------------------------------------------------------------- Wed Jun 19 08:44:06 UTC 2013 - mhrusecky@suse.com @@ -13,9 +20,9 @@ Mon Jun 18 12:13:25 UTC 2013 - mhrusecky@suse.com Tue Jun 18 00:33:10 UTC 2013 - crrodriguez@opensuse.org - 0001-journal-letting-interleaved-seqnums-go.patch and - 0002-journal-remember-last-direction-of-search-and-keep-o.patch - fix possible infinite loops in the journal code, related to - bnc #817778 + 0002-journal-remember-last-direction-of-search-and-keep-o.patch + fix possible infinite loops in the journal code, related to + bnc #817778 ------------------------------------------------------------------- Sun Jun 16 23:59:28 UTC 2013 - jengelh@inai.de diff --git a/systemd.spec b/systemd.spec index daba57f1..4cccbb5b 100644 --- a/systemd.spec +++ b/systemd.spec @@ -193,6 +193,8 @@ Patch1005: 1005-create-default-links-for-primary-cd_dvd-drive.patch Patch1006: 1006-udev-always-rename-network.patch # PATCH-FIX-OPENSUSE 1007-add-msft-compability-rules.patch Patch1007: 1007-add-msft-compability-rules.patch +# PATCH-FIX-OPENSUSE 1008-physical-hotplug-cpu-and-memory.patch +Patch1008: 1008-physical-hotplug-cpu-and-memory.patch %description Systemd is a system and service manager, compatible with SysV and LSB @@ -426,6 +428,7 @@ cp %{SOURCE7} m4/ # don't apply when bootstrapping to not modify Makefile.am %if ! 0%{?bootstrap} %patch1007 -p1 +%patch1008 -p1 %endif %build