From 3f0c2c5bf51916b997219be6e06c2aa61da0b5c7 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 28 Jul 2002 08:24:58 -0700 Subject: Make "cpu_relax()" imply a barrier, since that's how it is used. This fixes a lockup in synchronize_irq() on x86. --- include/asm-i386/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/asm-i386/processor.h b/include/asm-i386/processor.h index cec7bcacea21..4f7483f4b5a7 100644 --- a/include/asm-i386/processor.h +++ b/include/asm-i386/processor.h @@ -455,7 +455,7 @@ struct microcode { /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */ static inline void rep_nop(void) { - __asm__ __volatile__("rep;nop"); + __asm__ __volatile__("rep;nop": : :"memory"); } #define cpu_relax() rep_nop() -- cgit v1.2.3