From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759647AbcIMQ5h (ORCPT ); Tue, 13 Sep 2016 12:57:37 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:25146 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759339AbcIMQ5f (ORCPT ); Tue, 13 Sep 2016 12:57:35 -0400 From: Paul Burton To: CC: Paul Burton , Daniel Lezcano , Thomas Gleixner , Subject: [PATCH 2/2] clocksource: mips-gic-timer: Stop checking cpu_has_counter Date: Tue, 13 Sep 2016 17:56:44 +0100 Message-ID: <20160913165644.627-2-paul.burton@imgtec.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160913165644.627-1-paul.burton@imgtec.com> References: <20160913165644.627-1-paul.burton@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.100.200.124] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: linux-kernel@vger.kernel.org Cc: linux-mips@linux-mips.org --- drivers/clocksource/mips-gic-timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/mips-gic-timer.c b/drivers/clocksource/mips-gic-timer.c index 802055b..7a960cd 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) { int ret; - if (!cpu_has_counter || !gic_frequency) + if (!gic_frequency) return -ENXIO; ret = setup_percpu_irq(gic_timer_irq, &gic_compare_irqaction); -- 2.9.3