Skip to content

Commit

Permalink
Inlining will result in back-to-back mtc0 mfc0 instructions. Break the
Browse files Browse the repository at this point in the history
hazard by using back_to_back_c0_hazard().

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Oct 29, 2005
1 parent d3ffd08 commit d9912d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/mips/kernel/irq_cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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);
}

Expand Down

0 comments on commit d9912d8

Please sign in to comment.