We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3b4f79 commit cd2af07Copy full SHA for cd2af07
kernel/time/clocksource.c
@@ -152,12 +152,19 @@ static void __clocksource_unstable(struct clocksource *cs)
152
cs->flags &= ~(CLOCK_SOURCE_VALID_FOR_HRES | CLOCK_SOURCE_WATCHDOG);
153
cs->flags |= CLOCK_SOURCE_UNSTABLE;
154
155
- if (list_empty(&cs->list))
+ /*
156
+ * If the clocksource is registered clocksource_watchdog_kthread() will
157
+ * re-rate and re-select.
158
+ */
159
+ if (list_empty(&cs->list)) {
160
+ cs->rating = 0;
161
return;
162
+ }
163
164
if (cs->mark_unstable)
165
cs->mark_unstable(cs);
166
167
+ /* kick clocksource_watchdog_kthread() */
168
if (finished_booting)
169
schedule_work(&watchdog_work);
170
}
0 commit comments