MIPS: traps: tidy up ebase calculation
authorPaul Burton <paul.burton@imgtec.com>
Tue, 22 Sep 2015 17:15:22 +0000 (10:15 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 26 Oct 2015 08:49:44 +0000 (09:49 +0100)
commita13c996249a5ca7635853a4e7e15033393575e46
treee514143d350d419a08e3f28cb2a011fd92fc3b6b
parentee42a3344cc43bb404160ecb12038825638fcbf4
MIPS: traps: tidy up ebase calculation

Rather than #ifdef on CONFIG_KVM_GUEST & redefine the guest kseg0 base
locally, make use of the CAC_BASE macro which has the correct value in
both cases.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Cc: Maciej W. Rozycki <macro@linux-mips.org>
Cc: linux-kernel@vger.kernel.org
Cc: Markos Chandras <markos.chandras@imgtec.com>
Patchwork: https://patchwork.linux-mips.org/patch/11183/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/traps.c