summaryrefslogtreecommitdiffstats
path: root/arch/openrisc
diff options
context:
space:
mode:
authorVladimir Murzin <murzin.v@gmail.com>2012-09-17 18:57:08 +0200
committerJonas Bonn <jonas@southpole.se>2012-10-11 11:27:19 +0200
commit9b76beb071be6fbfd0743feedfdd844f57d4f345 (patch)
tree6c9040db6cc311db01c00ba2b865eddb44c2e3b0 /arch/openrisc
parentaudit: define AUDIT_ARCH_OPENRISC (diff)
downloadlinux-9b76beb071be6fbfd0743feedfdd844f57d4f345.tar.xz
linux-9b76beb071be6fbfd0743feedfdd844f57d4f345.zip
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 30462f1fe959..43decdbdb2ed 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 */