diff options
| author | Anton Blanchard <anton@samba.org> | 2002-07-22 04:32:05 +1000 |
|---|---|---|
| committer | Anton Blanchard <anton@samba.org> | 2002-07-22 04:32:05 +1000 |
| commit | b8c3b554d9753336cb169a0f2b2fbaf6c7f4cd26 (patch) | |
| tree | dc9d803f28c144af120702782a36f3bd38ee405a | |
| parent | 361ede9fdc6fee7186c9427efa5bee0b0f798946 (diff) | |
ppc64: workaround for gcc 3.1, otherwise we busy loop in pte_chain_lock()
| -rw-r--r-- | include/asm-ppc64/processor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-ppc64/processor.h b/include/asm-ppc64/processor.h index 44181b974714..b8c5ff083d05 100644 --- a/include/asm-ppc64/processor.h +++ b/include/asm-ppc64/processor.h @@ -692,7 +692,12 @@ unsigned long get_wchan(struct task_struct *p); #define KSTK_EIP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0) #define KSTK_ESP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->gpr[1]: 0) +/* XXX Temporary work around for a gcc 3.1 bug - Anton */ +#if 0 #define cpu_relax() do { } while (0) +#else +#define cpu_relax() barrier() +#endif /* * Prefetch macros. |
