|
@@ -87,8 +87,10 @@ static void __init estimate_frequencies(void)
|
|
|
|
|
|
/* Initialize counters. */
|
|
/* Initialize counters. */
|
|
start = read_c0_count();
|
|
start = read_c0_count();
|
|
- if (gic_present)
|
|
|
|
|
|
+ if (gic_present) {
|
|
|
|
+ gic_start_count();
|
|
gicstart = gic_read_count();
|
|
gicstart = gic_read_count();
|
|
|
|
+ }
|
|
|
|
|
|
/* Read counter exactly on falling edge of update flag. */
|
|
/* Read counter exactly on falling edge of update flag. */
|
|
while (CMOS_READ(RTC_REG_A) & RTC_UIP);
|
|
while (CMOS_READ(RTC_REG_A) & RTC_UIP);
|