From: Vladimir Murzin Date: Mon, 17 Sep 2012 16:57:08 +0000 (+0400) Subject: openrisc: Make cpu_relax() invoke barrier() X-Git-Tag: Ubuntu-snapdragon-4.4.0-1029.32~12258^2~3 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=9b76beb071be6fbfd0743feedfdd844f57d4f345;p=mirror_ubuntu-zesty-kernel.git openrisc: Make cpu_relax() invoke barrier() Make cpu_relax() invoke barrier() to be the same as other arches. Signed-off-by: Vladimir Murzin Signed-off-by: Jonas Bonn --- 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 */