clocksource/mips-gic-timer: Stop checking cpu_has_counter
authorPaul Burton <paul.burton@imgtec.com>
Tue, 13 Sep 2016 16:56:44 +0000 (17:56 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 20 Sep 2016 21:24:33 +0000 (23:24 +0200)
The cpu_has_counter macro indicates whether the current CPU has a
working coprocessor 0 count & compare registers, and has no bearing on
the GIC. Stop checking it.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: http://lkml.kernel.org/r/20160913165644.627-2-paul.burton@imgtec.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/clocksource/mips-gic-timer.c

index 802055ba1cbfb6c89f43816b8a4eeea63a370c48..7a960cd0110494a0c5b885fd6e89b81f3fec9c9c 100644 (file)
@@ -109,7 +109,7 @@ static int gic_clockevent_init(void)
 {
        int ret;
 
-       if (!cpu_has_counter || !gic_frequency)
+       if (!gic_frequency)
                return -ENXIO;
 
        ret = setup_percpu_irq(gic_timer_irq, &gic_compare_irqaction);