mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 23:34:05 +08:00
Inlining will result in back-to-back mtc0 mfc0 instructions. Break the
hazard by using back_to_back_c0_hazard(). Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
d3ffd08553
commit
d9912d8784
@ -55,6 +55,7 @@ static inline void mips_cpu_irq_enable(unsigned int irq)
|
||||
|
||||
local_irq_save(flags);
|
||||
unmask_mips_irq(irq);
|
||||
back_to_back_c0_hazard();
|
||||
local_irq_restore(flags);
|
||||
}
|
||||
|
||||
@ -64,6 +65,7 @@ static void mips_cpu_irq_disable(unsigned int irq)
|
||||
|
||||
local_irq_save(flags);
|
||||
mask_mips_irq(irq);
|
||||
back_to_back_c0_hazard();
|
||||
local_irq_restore(flags);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user