Commit 0a3eed3a authored by Anton Blanchard's avatar Anton Blanchard

ppc64: Make cpu_relax a barrier

parent b5548cc0
...@@ -173,10 +173,8 @@ inline void synchronize_irq(unsigned int irq) ...@@ -173,10 +173,8 @@ inline void synchronize_irq(unsigned int irq)
if (!irq_desc[irq].action) if (!irq_desc[irq].action)
return; return;
while (irq_desc[irq].status & IRQ_INPROGRESS) { while (irq_desc[irq].status & IRQ_INPROGRESS)
barrier();
cpu_relax(); cpu_relax();
}
} }
#endif /* CONFIG_SMP */ #endif /* CONFIG_SMP */
......
...@@ -692,7 +692,7 @@ unsigned long get_wchan(struct task_struct *p); ...@@ -692,7 +692,7 @@ unsigned long get_wchan(struct task_struct *p);
#define KSTK_EIP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0) #define KSTK_EIP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0)
#define KSTK_ESP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->gpr[1]: 0) #define KSTK_ESP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->gpr[1]: 0)
#define cpu_relax() do { } while (0) #define cpu_relax() barrier()
/* /*
* Prefetch macros. * Prefetch macros.
......
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