arm: Use common outgoing-CPU-notification code
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 12 May 2015 21:50:06 +0000 (14:50 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Mon, 12 Aug 2019 18:25:06 +0000 (11:25 -0700)
commit1d5087ab964d84e5a0cfe5059cf5e929127d573f
treefe8d45f4e6fbf200704effb98fdd38e4a8158562
parentb823cafa7501f946a37dce5aa1e576a0b2f31ed9
arm: Use common outgoing-CPU-notification code

This commit removes the open-coded CPU-offline notification with new
common code.  In particular, this change avoids calling scheduler code
using RCU from an offline CPU that RCU is ignoring.  This is a minimal
change.  A more intrusive change might invoke the cpu_check_up_prepare()
and cpu_set_state_online() functions at CPU-online time, which would
allow onlining throw an error if the CPU did not go offline properly.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
arch/arm/kernel/smp.c