From a3ff0b96dc065f62392b6c1010af8fe7f5aa838c Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Thu, 15 Feb 2007 19:05:29 +0100 Subject: [PATCH] --- yaml --- r: 48985 b: refs/heads/master c: 0e0ba76926c37f11f38670db0cb33728f502551e h: refs/heads/master i: 48983: b39fadb27c805b64937a342d42bba33419bcad19 v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-realview/platsmp.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 0b12cef1620e..cdc9c943c5d1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7770bddb27ea84519486d8bb5d35d36d580c451b +refs/heads/master: 0e0ba76926c37f11f38670db0cb33728f502551e diff --git a/trunk/arch/arm/mach-realview/platsmp.c b/trunk/arch/arm/mach-realview/platsmp.c index 709a9b1ac634..fce3596f9950 100644 --- a/trunk/arch/arm/mach-realview/platsmp.c +++ b/trunk/arch/arm/mach-realview/platsmp.c @@ -59,6 +59,7 @@ void __cpuinit platform_secondary_init(unsigned int cpu) * pen, then head off into the C entry point */ pen_release = -1; + smp_wmb(); /* * Synchronise with the boot thread. @@ -102,6 +103,7 @@ int __cpuinit boot_secondary(unsigned int cpu, struct task_struct *idle) timeout = jiffies + (1 * HZ); while (time_before(jiffies, timeout)) { + smp_rmb(); if (pen_release == -1) break;