]> git.baikalelectronics.ru Git - kernel.git/commit
[MIPS] Provide empty irq_enable_hazard definition for legacy and R1 cores.
authorRalf Baechle <ralf@linux-mips.org>
Mon, 3 Sep 2007 14:22:26 +0000 (16:22 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 10 Sep 2007 20:25:28 +0000 (21:25 +0100)
commite05bd2ce0334963d94c4c7b1da4a6edd38641ce9
tree5a930850752154a0a9e4b4458f67b04e756bf744
parent7e77232a454630d8e3a79fa75cbe5356f7ff2a07
[MIPS] Provide empty irq_enable_hazard definition for legacy and R1 cores.

Following a strict interpretation the empty definition of irq_enable_hazard
has always been a bug - but an intentional one because it didn't bite.
This has now changed, for uniprocessor kernels mm/slab.c:do_drain()

[...]
        on_each_cpu(do_drain, cachep, 1, 1);
        check_irq_on();
[...]

may be compiled into a mtc0 c0_status; mfc0 c0_status sequence resulting
in a back-to-back hazard.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/hazards.h