cpu/hotplug: Hide cpu_up/down()
authorQais Yousef <qais.yousef@arm.com>
Mon, 23 Mar 2020 13:51:10 +0000 (13:51 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 25 Mar 2020 11:59:38 +0000 (12:59 +0100)
commit33c3736ec88811b9b6f6ce2cc8967f6b97c3db5e
tree7960a1c3986d52a2db8c9fef31b92faa1696843f
parentb99a26593b5190fac6b5c1f81a7f8cc128a25c98
cpu/hotplug: Hide cpu_up/down()

Use separate functions for the device core to bring a CPU up and down.

Users outside the device core must use add/remove_cpu() which will take
care of extra housekeeping work like keeping sysfs in sync.

Make cpu_up/down() static and replace the extra layer of indirection.

[ tglx: Removed the extra wrapper functions and adjusted function names ]

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-18-qais.yousef@arm.com
drivers/base/cpu.c
include/linux/cpu.h
kernel/cpu.c