Commit d9912d87 authored by Ralf Baechle's avatar Ralf Baechle

Inlining will result in back-to-back mtc0 mfc0 instructions. Break the

hazard by using back_to_back_c0_hazard().
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent d3ffd085
...@@ -55,6 +55,7 @@ static inline void mips_cpu_irq_enable(unsigned int irq) ...@@ -55,6 +55,7 @@ static inline void mips_cpu_irq_enable(unsigned int irq)
local_irq_save(flags); local_irq_save(flags);
unmask_mips_irq(irq); unmask_mips_irq(irq);
back_to_back_c0_hazard();
local_irq_restore(flags); local_irq_restore(flags);
} }
...@@ -64,6 +65,7 @@ static void mips_cpu_irq_disable(unsigned int irq) ...@@ -64,6 +65,7 @@ static void mips_cpu_irq_disable(unsigned int irq)
local_irq_save(flags); local_irq_save(flags);
mask_mips_irq(irq); mask_mips_irq(irq);
back_to_back_c0_hazard();
local_irq_restore(flags); local_irq_restore(flags);
} }
......
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