openrisc: Make cpu_relax() invoke barrier()
authorVladimir Murzin <murzin.v@gmail.com>
Mon, 17 Sep 2012 16:57:08 +0000 (20:57 +0400)
committerJonas Bonn <jonas@southpole.se>
Thu, 11 Oct 2012 09:27:19 +0000 (11:27 +0200)
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>
arch/openrisc/include/asm/processor.h

index 30462f1fe959298cdf492bd8c18e3879fce7a50f..43decdbdb2ed8c8d4a4efafd164c99aae33e23c7 100644 (file)
@@ -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 */
This page took 0.026295 seconds and 5 git commands to generate.