Skip to content

Commit

Permalink
openrisc: Make cpu_relax() invoke barrier()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vladimir Murzin authored and Jonas Bonn committed Oct 11, 2012
1 parent e2bebb4 commit 9b76beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/openrisc/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 9b76beb

Please sign in to comment.