timekeeping fix patch got mis-applied

The time keeping code move to kernel/time/timekeeping.c broke the
clocksource resume logic patch, which got applied to the old file by a
fuzzy application.  Fix it up and move the clocksource_resume() call to
the appropriate place.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
[ tssk, tssk, everybody should use --fuzz=0 ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Thomas Gleixner 2007-05-14 11:10:02 +02:00 committed by Linus Torvalds
parent 705962ccc9
commit d10ff3fb62
2 changed files with 2 additions and 2 deletions

View File

@ -273,6 +273,8 @@ static int timekeeping_resume(struct sys_device *dev)
unsigned long flags; unsigned long flags;
unsigned long now = read_persistent_clock(); unsigned long now = read_persistent_clock();
clocksource_resume();
write_seqlock_irqsave(&xtime_lock, flags); write_seqlock_irqsave(&xtime_lock, flags);
if (now && (now > timekeeping_suspend_time)) { if (now && (now > timekeeping_suspend_time)) {

View File

@ -1499,8 +1499,6 @@ unregister_time_interpolator(struct time_interpolator *ti)
prev = &curr->next; prev = &curr->next;
} }
clocksource_resume();
write_seqlock_irqsave(&xtime_lock, flags); write_seqlock_irqsave(&xtime_lock, flags);
if (ti == time_interpolator) { if (ti == time_interpolator) {
/* we lost the best time-interpolator: */ /* we lost the best time-interpolator: */