Skip to contentSkip to conversation

NTP: Move all the NTP related code to ntp.c

PATCH In review john stultz 2 participants 2 messages Aug 9, 2006 Timekeeping, clocksource core, NTP, alarmtimer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NTP: Move all the NTP related code to ntp.c

Roman: I know you wanted me to hold off on this because you had NTP changes you were working on, but its been a month, and we're approaching the 2.6.19-rc1 window, so I'm going to go ahead and push this to -mm.

Move all the NTP related code to ntp.c

 include/linux/timex.h |    2 
 kernel/time.c         |  173 ---------------------
 kernel/time/Makefile  |    2 
 kernel/time/ntp.c     |  395 ++++++++++++++++++++++++++++++++++++++++++++++++++
 kernel/timer.c        |  203 -------------------------
 5 files changed, 398 insertions(+), 377 deletions(-)

linux-2.6.18-rc4_timeofday-ntp-cleanup_C5.patch
============================================

include/linux/timex.h +2 -0
index 19bb653..73b9cd2 100644
@@ -308,6 +308,8 @@ time_interpolator_reset(void)
 /* Returns how long ticks are at present, in ns / 2^(SHIFT_SCALE-10). */
 extern u64 current_tick_length(void);
 
+extern void second_overflow(void);
+extern void update_ntp_one_tick(void);
 extern int do_adjtimex(struct timex *);
 
 #endif /* KERNEL */
kernel/time.c +0 -173

179 lines not on this page · raw message

kernel/time/Makefile +1 -1
index e1dfd8e..61a3907 100644
@@ -1 +1 @@
-obj-y += clocksource.o jiffies.o
+obj-y += ntp.o clocksource.o jiffies.o
kernel/time/ntp.c new file +395 -0

395 lines not on this page · raw message

kernel/timer.c +0 -203

209 lines not on this page · raw message

#1 lore raw

Hi,

Quoted 2 lines · john stultz

Roman: I know you wanted me to hold off on this because you had NTP changes you were working on,

Oh, I meant this in regard to a possible reindentation. This OTOH should only require minimal patch editing. :)
My patches are mostly ready, I'll finish them in the evening.

bye, Roman