linux/arch/arm/mach-bcm
Alex Elder 35138d52f1 ARM: bcm: don't special-case CPU 0 in bcm_kona_smc()
There's logic in bcm_kona_smc() to ensure __bcm_kona_smc() gets
called on CPU 0; if already executing on CPU 0, that function is
called directly.  The direct call is not protected from interrupts,
however, which is not safe.

Note that smp_call_function_single() is designed to handle the case
where the target cpu is the current one.  It also gets a reference
to the CPU and disables IRQs across the call.

So we can simplify things and at the same time be protected against
interrupts by calling smp_call_function_single() unconditionally.

Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Tim Kryger <tim.kryger@linaro.org>
Reviewed-by: Markus Mayer <markus.mayer@linaro.org>
Reviewed-by: Matt Porter <mporter@linaro.org>
Signed-off-by: Matt Porter <mporter@linaro.org>
2014-04-25 08:51:34 -04:00
..
bcm_5301x.c ARM: BCM5301X: workaround suppress fault 2014-03-06 00:36:04 -05:00
bcm_kona_smc_asm.S ARM: bcm281xx: Add L2 cache enable code 2013-04-09 09:18:13 -07:00
bcm_kona_smc.c ARM: bcm: don't special-case CPU 0 in bcm_kona_smc() 2014-04-25 08:51:34 -04:00
bcm_kona_smc.h ARM: bcm: clean up SMC code 2014-04-25 08:51:32 -04:00
board_bcm281xx.c ARM: bcm281xx: Rename board_init() function 2014-03-06 03:18:01 -05:00
board_bcm2835.c ARM: bcm2835: Move to mach-bcm directory 2014-02-24 19:42:35 -07:00
board_bcm21664.c ARM: bcm21664: Add board support. 2014-03-14 11:25:15 -04:00
Kconfig ARM: bcm: clean up config and build targets 2014-04-25 08:51:30 -04:00
kona.c ARM: bcm: have bcm_kona_smc() return request result 2014-04-25 08:51:33 -04:00
kona.h ARM: bcm281xx: Consolidate reboot code 2014-03-06 03:17:59 -05:00
Makefile ARM: bcm: clean up config and build targets 2014-04-25 08:51:30 -04:00