diff options
author | Paul Burton <paul.burton@imgtec.com> | 2016-09-13 12:56:44 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-09-20 17:24:33 -0400 |
commit | 6982530eab096939f9c5b607a5ce8078df19737e (patch) | |
tree | 37c258d1835213f9d6107c5635ad8ff4d7ea14f4 | |
parent | 2fd0c93cd219779eef4b1301f9613e43adc86e39 (diff) |
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: 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>
-rw-r--r-- | drivers/clocksource/mips-gic-timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/mips-gic-timer.c b/drivers/clocksource/mips-gic-timer.c index 802055ba1cbf..7a960cd01104 100644 --- a/drivers/clocksource/mips-gic-timer.c +++ b/drivers/clocksource/mips-gic-timer.c | |||
@@ -109,7 +109,7 @@ static int gic_clockevent_init(void) | |||
109 | { | 109 | { |
110 | int ret; | 110 | int ret; |
111 | 111 | ||
112 | if (!cpu_has_counter || !gic_frequency) | 112 | if (!gic_frequency) |
113 | return -ENXIO; | 113 | return -ENXIO; |
114 | 114 | ||
115 | ret = setup_percpu_irq(gic_timer_irq, &gic_compare_irqaction); | 115 | ret = setup_percpu_irq(gic_timer_irq, &gic_compare_irqaction); |