Commit 37916178 authored by Paul Burton's avatar Paul Burton Committed by Ralf Baechle

MIPS: CPS: Read GIC_VL_IDENT directly, not via irqchip driver

Rather than calling the gic_read_local_vp_id() function from the GIC
irqchip driver, call read_gic_vl_ident() to read the GIC_VL_IDENT
register directly. This will allow us to remove gic_read_local_vp_id()
from the irqchip driver in a further patch, since that driver doesn't
actually care about the register's value.
Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/17023/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 095a7e38
...@@ -368,7 +368,7 @@ static void cps_init_secondary(void) ...@@ -368,7 +368,7 @@ static void cps_init_secondary(void)
dmt(); dmt();
if (mips_cm_revision() >= CM_REV_CM3) { if (mips_cm_revision() >= CM_REV_CM3) {
unsigned ident = gic_read_local_vp_id(); unsigned int ident = read_gic_vl_ident();
/* /*
* Ensure that our calculation of the VP ID matches up with * Ensure that our calculation of the VP ID matches up with
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment