Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be37a990 authored by Markos Chandras's avatar Markos Chandras Committed by Ralf Baechle
Browse files

MIPS: Malta: malta-time: Ensure GIC counter is running



Start the GIC counter before we try to determine its frequency.

Signed-off-by: default avatarMarkos 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: default avatarRalf Baechle <ralf@linux-mips.org>
parent 7d9cd1f5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);