OSDN Git Service

cpu/hotplug: Create a new function to shutdown nonboot cpus
authorQais Yousef <qais.yousef@arm.com>
Mon, 23 Mar 2020 13:50:55 +0000 (13:50 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 25 Mar 2020 11:59:31 +0000 (12:59 +0100)
commit0441a5597c5d02ed7abed1d989eaaa1595dedac5
treed5014aec6251f4733d0740fc9a632850fad9d9a5
parent93ef1429e556f739a208e3968883ed51480580e8
cpu/hotplug: Create a new function to shutdown nonboot cpus

This function will be used later in machine_shutdown() for some
architectures.

disable_nonboot_cpus() is not safe to use when doing machine_down(),
because it relies on freeze_secondary_cpus() which in turn is a
suspend/resume related freeze and could abort if the logic detects any
pending activities that can prevent finishing the offlining process.

Signed-off-by: Qais Yousef <qais.yousef@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200323135110.30522-3-qais.yousef@arm.com
include/linux/cpu.h
kernel/cpu.c