summaryrefslogtreecommitdiffstats
path: root/arch/openrisc
diff options
context:
space:
mode:
authorVladimir Murzin <murzin.v@gmail.com>2012-09-17 20:57:08 +0400
committerJonas Bonn <jonas@southpole.se>2012-10-11 11:27:19 +0200
commit9b76beb071be6fbfd0743feedfdd844f57d4f345 (patch)
tree6c9040db6cc311db01c00ba2b865eddb44c2e3b0 /arch/openrisc
parente2bebb4ae6d9ac4ffc524db67f7ecb205a173f77 (diff)
openrisc: Make cpu_relax() invoke barrier()
Make cpu_relax() invoke barrier() to be the same as other arches. Signed-off-by: Vladimir Murzin <murzin.v@gmail.com> Signed-off-by: Jonas Bonn <jonas@southpole.se>
Diffstat (limited to 'arch/openrisc')
-rw-r--r--arch/openrisc/include/asm/processor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/openrisc/include/asm/processor.h b/arch/openrisc/include/asm/processor.h
index 30462f1fe95..43decdbdb2e 100644
--- a/arch/openrisc/include/asm/processor.h
+++ b/arch/openrisc/include/asm/processor.h
@@ -103,7 +103,7 @@ extern unsigned long thread_saved_pc(struct task_struct *t);
#define init_stack (init_thread_union.stack)
-#define cpu_relax() do { } while (0)
+#define cpu_relax() barrier()
#endif /* __ASSEMBLY__ */
#endif /* __ASM_OPENRISC_PROCESSOR_H */