Commit 3f0c2c5b authored by Linus Torvalds's avatar Linus Torvalds

Make "cpu_relax()" imply a barrier, since that's how it is

used.

This fixes a lockup in synchronize_irq() on x86.
parent 984e13d3
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment