]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
MIPS: CPS: Read GIC_VL_IDENT directly, not via irqchip driver
authorPaul Burton <paul.burton@imgtec.com>
Sun, 13 Aug 2017 04:36:13 +0000 (21:36 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 4 Sep 2017 11:53:14 +0000 (13:53 +0200)
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: Paul 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: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/smp-cps.c

index 0d9cda6a77dec6677a3ac6e06b5181f6447bb8b8..c316a0f9e6fbc29a08d07e0c4c21771819ffea0e 100644 (file)
@@ -368,7 +368,7 @@ static void cps_init_secondary(void)
                dmt();
 
        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