diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index c3d2b94723dcff910173d556c233c2717b88661e..935f39eb8aac33029569f51bff92cff5c8c6c479 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c @@ -332,6 +332,8 @@ static void clocksource_resume_watchdog(void) static void clocksource_enqueue_watchdog(struct clocksource *cs) { + INIT_LIST_HEAD(&cs->wd_list); + if (cs->flags & CLOCK_SOURCE_MUST_VERIFY) { /* cs is a clocksource to be watched. */ list_add(&cs->wd_list, &watchdog_list);