History

clocksource: fix resume logic

We need to make sure that the clocksources are resumed, when timekeeping is resumed. The current resume logic does not guarantee this. Add a resume function pointer to the clocksource struct, so clocksource drivers which need to reinitialize the clocksource can provide a resume function. Add a resume function, which calls the maybe available clocksource resume functions and resets the watchdog function, so a stable TSC can be used accross suspend/resume.

Thomas Gleixner committed 19 years ago

Commit b52f52a1 parent 4037d453 files · +50 −0Browse files

Showing the changes to kernel/timer.c (1 of 3 files). Show all

Unified · Split

kernel/timer.c+2−0
@@ -1499,6 +1499,8 @@ unregister_time_interpolator(struct time_interpolator *ti) · 1498 unmodified lines
14991499 prev = &curr->next;
15001500 }
15011501
1502+ clocksource_resume();
1503+
15021504 write_seqlock_irqsave(&xtime_lock, flags);
15031505 if (ti == time_interpolator) {
15041506 /* we lost the best time-interpolator: */