MIPS: Netlogic: Optimize and fix write_c0_eimr()
authorJayachandran C <jchandra@broadcom.com>
Sat, 23 Mar 2013 17:27:53 +0000 (17:27 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 7 May 2013 23:19:04 +0000 (01:19 +0200)
commit33ff712aef509ff1b116a46084c96179f8da1d49
tree2ea35165158d82337ad19c57a7dfa88ea97d0b75
parent042df4fa28a459ac425cea9bc81764532c267ba4
MIPS: Netlogic: Optimize and fix write_c0_eimr()

Remove the irq save/restore from write_c0_eimr(), as it is always called
with interrupts off.

This allows us to remove workaround in write_c0_eimr() to fix up the
flags used by local_irq_save. This fixup worked on XLR, but will break
when 32-bit support is added to r2 cpus like XLP.

Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Patchwork: http://patchwork.linux-mips.org/patch/5022/
Acked-by: John Crispin <blogic@openwrt.org>
arch/mips/include/asm/netlogic/mips-extns.h