summaryrefslogtreecommitdiffstats
path: root/arch/mips/mti-malta
diff options
context:
space:
mode:
authorMarkos Chandras <markos.chandras@imgtec.com>2015-03-23 13:32:03 +0100
committerRalf Baechle <ralf@linux-mips.org>2015-03-31 12:04:13 +0200
commitbe37a9900b0470fc424fe3382a414eabf759a8ac (patch)
treeade90ff520f27d2d3ccb18569c061007fb171d4f /arch/mips/mti-malta
parentCLOCKSOURCE: mips-gic-timer: Ensure GIC counter is running (diff)
downloadlinux-be37a9900b0470fc424fe3382a414eabf759a8ac.tar.xz
linux-be37a9900b0470fc424fe3382a414eabf759a8ac.zip
MIPS: Malta: malta-time: Ensure GIC counter is running
Start the GIC counter before we try to determine its frequency. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Cc: linux-kernel@vger.kernel.org Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9596/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mti-malta')
-rw-r--r--arch/mips/mti-malta/malta-time.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/mips/mti-malta/malta-time.c b/arch/mips/mti-malta/malta-time.c
index 7d4b86571564..185e68261f45 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);