From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753254AbbCWMc3 (ORCPT ); Mon, 23 Mar 2015 08:32:29 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:12825 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753028AbbCWMc0 (ORCPT ); Mon, 23 Mar 2015 08:32:26 -0400 From: Markos Chandras To: CC: Markos Chandras , Subject: [PATCH 3/3] MIPS: Malta: malta-time: Ensure GIC counter is running Date: Mon, 23 Mar 2015 12:32:03 +0000 Message-ID: <1427113923-9840-4-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 before we try to determine its frequency. Cc: Signed-off-by: Markos Chandras --- arch/mips/mti-malta/malta-time.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/mips/mti-malta/malta-time.c b/arch/mips/mti-malta/malta-time.c index ce02dbdedc62..128a74bd7cea 100644 --- a/arch/mips/mti-malta/malta-time.c +++ b/arch/mips/mti-malta/malta-time.c @@ -87,8 +87,10 @@ static void __init estimate_frequencies(void) /* Initialize counters. */ start = read_c0_count(); - if (gic_present) + if (gic_present) { + gic_start_count(); gicstart = gic_read_count(); + } /* Read counter exactly on falling edge of update flag. */ while (CMOS_READ(RTC_REG_A) & RTC_UIP); -- 2.3.3