From 8d647da1edcc4aad93660da8a41dc09f628eb53c Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 22 Apr 2008 19:38:30 +0000 Subject: Now that all platforms use genclock, shuffle things around slightly for better structure. Much of this is related to , which should really have been called , but unless and until we need the name, the repocopy can wait. In general the kernel does not know about minutes, hours, days, timezones, daylight savings time, leap-years and such. All that is theoretically a matter for userland only. Parts of kernel code does however care: badly designed filesystems store timestamps in local time and RTC chips almost universally track time in a YY-MM-DD HH:MM:SS format, and sometimes in local timezone instead of UTC. For this we have on the other hand, deals with time_t, timeval, timespec and so on. These know only seconds and fractions thereof. Move inittodr() and resettodr() prototypes to . Retain the names as it is one of the few surviving PDP/VAX references. Move startrtclock() to on relevant platforms, it is a MD call between machdep.c/clock.c. Remove references to it elsewhere. Remove a lot of unnecessary includes. Move the machdep.disable_rtc_set sysctl to subr_rtc.c where it belongs. XXX: should be kern.disable_rtc_set really, it's not MD. --- sys/ia64/ia64/clock.c | 2 -- sys/ia64/ia64/machdep.c | 1 - 2 files changed, 3 deletions(-) (limited to 'sys/ia64') diff --git a/sys/ia64/ia64/clock.c b/sys/ia64/ia64/clock.c index c774dad..22fcf9b 100644 --- a/sys/ia64/ia64/clock.c +++ b/sys/ia64/ia64/clock.c @@ -29,12 +29,10 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include #include -#include #include #include diff --git a/sys/ia64/ia64/machdep.c b/sys/ia64/ia64/machdep.c index 7ce78b8..45e57de 100644 --- a/sys/ia64/ia64/machdep.c +++ b/sys/ia64/ia64/machdep.c @@ -261,7 +261,6 @@ cpu_startup(dummy) */ identifycpu(); - /* startrtclock(); */ #ifdef PERFMON perfmon_init(); #endif -- cgit v1.1