Skip to contentSkip to conversation

reorder slow clock source read for clock source watchdog

PATCH New Luming Yu 1 participant 1 message Nov 27, 2018 Timekeeping, clocksource core, NTP, alarmtimer

lore
Share & tools
lore

Luming Yu

author
#0 lore raw

PATCH 1/1 reorder slow clock source read for clock source watchdog

the clock source watchdog (HPET) in skx is much slower than the clock source TSC. The long latency in the first call may trigger a false postive TSC unstable noise. Let the fast one follows the slow one should fix it.

---
 kernel/time/clocksource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/time/clocksource.c +1 -1
index ffe081623aec..8ea929e50ca6 100644
@@ -225,8 +225,8 @@ static void clocksource_watchdog(struct timer_list *unused)
 		}
 
 		local_irq_disable();
-		csnow = cs->read(cs);
 		wdnow = watchdog->read(watchdog);
+		csnow = cs->read(cs);
 		local_irq_enable();
 
 		/* Clocksource initialized ? */
Signature · 1 line
2.14.4