torture: Replace cpu_up/down() with add/remove_cpu()
authorQais Yousef <qais.yousef@arm.com>
Mon, 23 Mar 2020 13:51:08 +0000 (13:51 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 25 Mar 2020 11:59:37 +0000 (12:59 +0100)
commit457bc8ed3ec7edc567200302d9312ac8bbc31316
tree1f326b4f7e5c27370cb14643b4ec72ff75f2163d
parent20fb50295b139494754964d7d005b5a2f465ef08
torture: 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>
Acked-by: "Paul E. McKenney" <paulmck@kernel.org>
Link: https://lkml.kernel.org/r/20200323135110.30522-16-qais.yousef@arm.com
kernel/torture.c