MIPS: Malta: Use new GIC accessor functions
authorPaul Burton <paul.burton@imgtec.com>
Wed, 30 Aug 2017 16:33:30 +0000 (09:33 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 1 Sep 2017 20:34:46 +0000 (22:34 +0200)
Use the accessor functions provided by asm/mips-gic.h rather than
calling functions provided by the GIC irqchip driver, in preparation for
those non-IRQ-related functions being removed from the irqchip driver.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mti-malta/malta-time.c

index cea4ec9098063ed8c82eb41786fba4634f73a4d2..f0577469073d026fab829893362998388006ead5 100644 (file)
@@ -86,7 +86,7 @@ static void __init estimate_frequencies(void)
        local_irq_save(flags);
 
        if (gic_present)
-               gic_start_count();
+               clear_gic_config(GIC_CONFIG_COUNTSTOP);
 
        /*
         * Read counters exactly on rising edge of update flag.
@@ -96,7 +96,7 @@ static void __init estimate_frequencies(void)
        while (!(CMOS_READ(RTC_REG_A) & RTC_UIP));
        start = read_c0_count();
        if (gic_present)
-               gicstart = gic_read_count();
+               gicstart = read_gic_counter();
 
        /* Wait for falling edge before reading RTC. */
        while (CMOS_READ(RTC_REG_A) & RTC_UIP);
@@ -106,7 +106,7 @@ static void __init estimate_frequencies(void)
        while (!(CMOS_READ(RTC_REG_A) & RTC_UIP));
        count = read_c0_count();
        if (gic_present)
-               giccount = gic_read_count();
+               giccount = read_gic_counter();
 
        /* Wait for falling edge before reading RTC again. */
        while (CMOS_READ(RTC_REG_A) & RTC_UIP);