From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754714AbcITVbZ (ORCPT ); Tue, 20 Sep 2016 17:31:25 -0400 Received: from terminus.zytor.com ([198.137.202.10]:38684 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754658AbcITVbV (ORCPT ); Tue, 20 Sep 2016 17:31:21 -0400 Date: Tue, 20 Sep 2016 14:31:12 -0700 From: tip-bot for Paul Burton Message-ID: Cc: daniel.lezcano@linaro.org, linux-kernel@vger.kernel.org, hpa@zytor.com, paul.burton@imgtec.com, mingo@kernel.org, tglx@linutronix.de Reply-To: mingo@kernel.org, hpa@zytor.com, paul.burton@imgtec.com, tglx@linutronix.de, daniel.lezcano@linaro.org, linux-kernel@vger.kernel.org In-Reply-To: <20160913165644.627-2-paul.burton@imgtec.com> References: <20160913165644.627-2-paul.burton@imgtec.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:timers/core] clocksource/mips-gic-timer: Stop checking cpu_has_counter Git-Commit-ID: 6982530eab096939f9c5b607a5ce8078df19737e X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 6982530eab096939f9c5b607a5ce8078df19737e Gitweb: http://git.kernel.org/tip/6982530eab096939f9c5b607a5ce8078df19737e Author: Paul Burton AuthorDate: Tue, 13 Sep 2016 17:56:44 +0100 Committer: Thomas Gleixner CommitDate: Tue, 20 Sep 2016 23:24:33 +0200 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 Cc: linux-mips@linux-mips.org Cc: Daniel Lezcano Link: http://lkml.kernel.org/r/20160913165644.627-2-paul.burton@imgtec.com Signed-off-by: Thomas Gleixner --- 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);