Move timekeeping code to timekeeping.c
RFC PATCH 1/1 Move timekeeping code to timekeeping.c
So I've been putting off this change for awhile since there's been so
much churn in the timekeeping code, but now looking at both -mm and -rt it seems there is only a minimal amount of timekeeping changes pending, so I wanted to send this out there for comments before pushing it to -mm with a hopeful inclusion date of 2.6.22.
Simply, it moves the timekeeping code out of kernel/timer.c and into kernel/time/timekeeping.c. I made no cleanups or other changes in transit.
Any thoughts or objections?
thanks
-john
Signed-off-by John Stultz <[email protected]>
include/linux/time.h | 1 kernel/time/Makefile | 2 kernel/time/timekeeping.c | 475 ++++++++++++++++++++++++++++++++++++++++++++++ kernel/timer.c | 459 -------------------------------------------- 4 files changed, 478 insertions(+), 459 deletions(-)
include/linux/time.h +1 -0
@@ -119,6 +119,7 @@ extern void getnstimeofday(struct timespextern struct timespec timespec_trunc (struct timespec t,unsigned gran);extern int timekeeping_is_continuous (void ); +extern void update_wall_time (void );/** * timespec_to_ns - Convert timespec to nanoseconds
kernel/time/Makefile +1 -1
@@ -1,4 +1,4 @@ -obj-y += ntp.o clocksource.o jiffies.o timer_list.o +obj-y += timekeeping.o ntp.o clocksource.o jiffies.o timer_list.o obj-$(CONFIG_GENERIC_CLOCKEVENTS) += clockevents.o obj-$(CONFIG_GENERIC_CLOCKEVENTS) += tick-common.o
kernel/time/timekeeping.c new file +475 -0
475 lines not on this page · raw message
kernel/timer.c +1 -458
477 lines not on this page · raw message