Skip to content

Commit 6982530

Browse files
paulburtonKAGA-KOKO
authored andcommitted
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>
1 parent 2fd0c93 commit 6982530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clocksource/mips-gic-timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static int gic_clockevent_init(void)
109109
{
110110
int ret;
111111

112-
if (!cpu_has_counter || !gic_frequency)
112+
if (!gic_frequency)
113113
return -ENXIO;
114114

115115
ret = setup_percpu_irq(gic_timer_irq, &gic_compare_irqaction);

0 commit comments

Comments
 (0)