MIPS: Remove duplicate EBase configuration
authorPaul Burton <paul.burton@mips.com>
Tue, 30 Apr 2019 22:53:31 +0000 (22:53 +0000)
committerPaul Burton <paul.burton@mips.com>
Thu, 2 May 2019 18:21:08 +0000 (11:21 -0700)
commitde56d4c1da3e68f0ca468a55f6677bef3cee6e10
treeeb50e182e0c6b03f6aae143ed7ee6fe0fabed21f
parent783454e2bc7ce491b5cd50154433cde993bfd849
MIPS: Remove duplicate EBase configuration

Clean up our configuration of the EBase register by making
configure_exception_vector() write to it unconditionally on systems
implementing MIPSr2 or higher, and removing the duplicate code in
per_cpu_trap_init(). The latter would have duplicated work on systems
with vectored interrupts, and didn't set BEV for safety like the
configure_exception_vector() version of the code does.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Tested-by: Serge Semin <fancer.lancer@gmail.com>
Cc: linux-mips@vger.kernel.org
arch/mips/kernel/traps.c