]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
Inlining will result in back-to-back mtc0 mfc0 instructions. Break the
authorRalf Baechle <ralf@linux-mips.org>
Tue, 9 Aug 2005 15:23:49 +0000 (15:23 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 29 Oct 2005 18:32:00 +0000 (19:32 +0100)
hazard by using back_to_back_c0_hazard().

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/irq_cpu.c

index 060722e42c53f9e8aac2f268dea306e4219a0465..31c38c4971c0ab48f931d4f0e4f030fc4ea06ee8 100644 (file)
@@ -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);
 }