]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1f455c66fff4f641db2b7518617fd17de6a84734
treefe8d45f4e6fbf200704effb98fdd38e4a8158562
parent1a018dd7424dea12320b2902ec9daac921dfef62
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