提交 9b76beb0 编写于 作者: V Vladimir Murzin 提交者: Jonas Bonn

openrisc: Make cpu_relax() invoke barrier()

Make cpu_relax() invoke barrier() to be the same as other arches.
Signed-off-by: NVladimir Murzin <murzin.v@gmail.com>
Signed-off-by: NJonas Bonn <jonas@southpole.se>
上级 e2bebb4a
...@@ -103,7 +103,7 @@ extern unsigned long thread_saved_pc(struct task_struct *t); ...@@ -103,7 +103,7 @@ extern unsigned long thread_saved_pc(struct task_struct *t);
#define init_stack (init_thread_union.stack) #define init_stack (init_thread_union.stack)
#define cpu_relax() do { } while (0) #define cpu_relax() barrier()
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
#endif /* __ASM_OPENRISC_PROCESSOR_H */ #endif /* __ASM_OPENRISC_PROCESSOR_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册