[PATCH] HZ free ntp
Distangle the NTP update from HZ. This is necessary for dynamic tick enabled kernels. Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@elte.hu> Cc: john stultz <johnstul@us.ibm.com> Cc: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
771ee3b04e
commit
f4304ab215
@@ -890,7 +890,7 @@ void __init timekeeping_init(void)
|
||||
ntp_clear();
|
||||
|
||||
clock = clocksource_get_next();
|
||||
clocksource_calculate_interval(clock, tick_nsec);
|
||||
clocksource_calculate_interval(clock, NTP_INTERVAL_LENGTH);
|
||||
clock->cycle_last = clocksource_read(clock);
|
||||
|
||||
write_sequnlock_irqrestore(&xtime_lock, flags);
|
||||
@@ -1092,7 +1092,7 @@ static void update_wall_time(void)
|
||||
if (change_clocksource()) {
|
||||
clock->error = 0;
|
||||
clock->xtime_nsec = 0;
|
||||
clocksource_calculate_interval(clock, tick_nsec);
|
||||
clocksource_calculate_interval(clock, NTP_INTERVAL_LENGTH);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user