summaryrefslogtreecommitdiff
path: root/include/asm-ppc64/processor.h
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2002-07-22 04:32:05 +1000
committerAnton Blanchard <anton@samba.org>2002-07-22 04:32:05 +1000
commitb8c3b554d9753336cb169a0f2b2fbaf6c7f4cd26 (patch)
treedc9d803f28c144af120702782a36f3bd38ee405a /include/asm-ppc64/processor.h
parent361ede9fdc6fee7186c9427efa5bee0b0f798946 (diff)
ppc64: workaround for gcc 3.1, otherwise we busy loop in pte_chain_lock()
Diffstat (limited to 'include/asm-ppc64/processor.h')
-rw-r--r--include/asm-ppc64/processor.h5
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.