From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753271AbbCWMcb (ORCPT ); Mon, 23 Mar 2015 08:32:31 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:30941 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753018AbbCWMcX (ORCPT ); Mon, 23 Mar 2015 08:32:23 -0400 From: Markos Chandras To: CC: Markos Chandras , Daniel Lezcano , Thomas Gleixner , Subject: [PATCH 2/3] clocksource: mips-gic-timer: Ensure GIC counter is running Date: Mon, 23 Mar 2015 12:32:02 +0000 Message-ID: <1427113923-9840-3-git-send-email-markos.chandras@imgtec.com> X-Mailer: git-send-email 2.3.3 In-Reply-To: <1427113923-9840-1-git-send-email-markos.chandras@imgtec.com> References: <1427113923-9840-1-git-send-email-markos.chandras@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.154.138] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Start the GIC counter after configuring the clocksource since there are no guarantees the counter will be running after a CPU reset. Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Signed-off-by: Markos Chandras --- drivers/clocksource/mips-gic-timer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clocksource/mips-gic-timer.c b/drivers/clocksource/mips-gic-timer.c index 3bd31b1321f6..16adbc1fa4c1 100644 --- a/drivers/clocksource/mips-gic-timer.c +++ b/drivers/clocksource/mips-gic-timer.c @@ -133,6 +133,9 @@ static void __init __gic_clocksource_init(void) clocksource_register_hz(&gic_clocksource, gic_frequency); gic_clockevent_init(); + + /* And finally start the counter */ + gic_start_count(); } void __init gic_clocksource_init(unsigned int frequency) -- 2.3.3