projects
/
cascardo
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c24594
)
sh: smp: shove a cpu_relax() in the plat_start_cpu() busy loop.
author
Paul Mundt
<lethal@linux-sh.org>
Wed, 6 Aug 2008 09:39:32 +0000
(18:39 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Mon, 8 Sep 2008 01:35:03 +0000
(10:35 +0900)
Without this, certain versions of GCC will happily optimize the entire
loop out.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/sh4a/smp-shx3.c
patch
|
blob
|
history
diff --git
a/arch/sh/kernel/cpu/sh4a/smp-shx3.c
b/arch/sh/kernel/cpu/sh4a/smp-shx3.c
index
edb4da0
..
b8869aa
100644
(file)
--- a/
arch/sh/kernel/cpu/sh4a/smp-shx3.c
+++ b/
arch/sh/kernel/cpu/sh4a/smp-shx3.c
@@
-82,7
+82,7
@@
void plat_start_cpu(unsigned int cpu, unsigned long entry_point)
ctrl_outl(STBCR_MSTP, STBCR_REG(cpu));
while (!(ctrl_inl(STBCR_REG(cpu)) & STBCR_MSTP))
- ;
+
cpu_relax()
;
/* Start up secondary processor by sending a reset */
ctrl_outl(STBCR_AP_VAL, STBCR_REG(cpu));