mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 14:41:39 +00:00
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>
This commit is contained in:
parent
7d9cd1f518
commit
be37a9900b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user