Commit 6982530e authored by Paul Burton's avatar Paul Burton Committed by Thomas Gleixner

clocksource/mips-gic-timer: Stop checking cpu_has_counter

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: default avatarPaul 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.comSigned-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 2fd0c93c
...@@ -109,7 +109,7 @@ static int gic_clockevent_init(void) ...@@ -109,7 +109,7 @@ static int gic_clockevent_init(void)
{ {
int ret; int ret;
if (!cpu_has_counter || !gic_frequency) if (!gic_frequency)
return -ENXIO; return -ENXIO;
ret = setup_percpu_irq(gic_timer_irq, &gic_compare_irqaction); ret = setup_percpu_irq(gic_timer_irq, &gic_compare_irqaction);
......
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