OSDN Git Service

x86/smp: Replace cpu_up/down() with add/remove_cpu()
authorQais Yousef <qais.yousef@arm.com>
Mon, 23 Mar 2020 13:51:02 +0000 (13:51 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 25 Mar 2020 11:59:35 +0000 (12:59 +0100)
commitaf7aa04683e85ccb9088e31fe67a0397167b7abd
tree2b4d20770590f828a5d67ec45ea60246aa9a445b
parente646ac5bb88d9480eeb3b0d31d2e3eed056c2638
x86/smp: Replace cpu_up/down() with add/remove_cpu()

The core device API performs extra housekeeping bits that are missing
from directly calling cpu_up/down().

See commit a6717c01ddc2 ("powerpc/rtas: use device model APIs and
serialization during LPM") for an example description of what might go
wrong.

This also prepares to make cpu_up/down() a private interface of the CPU
subsystem.

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-10-qais.yousef@arm.com
arch/x86/kernel/topology.c
arch/x86/mm/mmio-mod.c
arch/x86/xen/smp.c