From: Alex Elder Date: Mon, 21 Apr 2014 21:53:06 +0000 (-0500) Subject: ARM: bcm: don't special-case CPU 0 in bcm_kona_smc() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~45^2~6^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35138d52f18c3f757f12d54c0962a755bcf218f3;p=pandora-kernel.git 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 Reviewed-by: Tim Kryger Reviewed-by: Markus Mayer Reviewed-by: Matt Porter Signed-off-by: Matt Porter --- Reading git-diff-tree failed