Skip to content

Commit 1cfc05c

Browse files
committed
ARC: cpu_relax() to be compiler barrier even for UP
cpu_relax() on ARC has been barrier only for SMP (and no-op for UP). Per recent discussions, it is safer to make it a compiler barrier unconditionally. Link: http://lkml.kernel.org/r/53A7D3AA.9020100@synopsys.com Acked-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent a6416f5 commit 1cfc05c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/arc/include/asm/processor.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,7 @@ struct task_struct;
5757
* A lot of busy-wait loops in SMP are based off of non-volatile data otherwise
5858
* get optimised away by gcc
5959
*/
60-
#ifdef CONFIG_SMP
6160
#define cpu_relax() __asm__ __volatile__ ("" : : : "memory")
62-
#else
63-
#define cpu_relax() do { } while (0)
64-
#endif
6561

6662
#define cpu_relax_lowlatency() cpu_relax()
6763

0 commit comments

Comments
 (0)