From: Russell King Date: Fri, 29 Jul 2005 15:36:48 +0000 (+0100) Subject: [ARM SMP] Ensure secondary CPUs see their pen release X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7ac5ae4b122f9415948c642b945a26938aa8f347;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [ARM SMP] Ensure secondary CPUs see their pen release Since the secondary CPUs will not be operating in symetric mode while they are held in the pen, we need to ensure that the write to pen_release is visible to them, by flushing the cache. Signed-off-by: Russell King --- diff --git a/arch/arm/mach-integrator/platsmp.c b/arch/arm/mach-integrator/platsmp.c index aecf47ba033a..ea10bd8c972c 100644 --- a/arch/arm/mach-integrator/platsmp.c +++ b/arch/arm/mach-integrator/platsmp.c @@ -15,6 +15,7 @@ #include #include +#include #include #include #include @@ -80,6 +81,7 @@ int __cpuinit boot_secondary(unsigned int cpu, struct task_struct *idle) * "cpu" is Linux's internal ID. */ pen_release = cpu; + flush_cache_all(); /* * XXX