Преглед изворни кода

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>
Vladimir Murzin пре 13 година
родитељ
комит
9b76beb071
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      arch/openrisc/include/asm/processor.h

+ 1 - 1
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 */