lkml.org 
[lkml]   [2020]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH RFC v3 0/3] support hotplug CPUs before reboot
Date
This series adds a config REBOOT_HOTPLUG_CPU which would hotplug CPUs
before reboot. Architecture code (smp_send_stop) currently would loop
through online secondary CPUs and some may call ipi functions to them.
With this config enabled, ideally we don't need smp_send_stop. But we
keep the code for those don't enable this config and as a backup if
some CPU fails to go offline before reboot.

Also enable this config for arm64 and x86 defconfig as an example.

Change from v2:
* Add another config instead of configed by CONFIG_HOTPLUG_CPU

Hsin-Yi Wang (3):
reboot: support hotplug CPUs before reboot
arm64: defconfig: enable REBOOT_HOTPLUG_CPU
x86: defconfig: enable REBOOT_HOTPLUG_CPU

arch/Kconfig | 6 ++++++
arch/arm64/configs/defconfig | 1 +
arch/x86/configs/i386_defconfig | 1 +
arch/x86/configs/x86_64_defconfig | 1 +
include/linux/cpu.h | 3 +++
kernel/cpu.c | 19 +++++++++++++++++++
kernel/reboot.c | 8 ++++++++
7 files changed, 39 insertions(+)

--
2.25.0.rc1.283.g88dfdc4193-goog

\
 
 \ /
  Last update: 2020-01-13 13:03    [W:0.058 / U:26.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site