Date: Tue, 22 Apr 2008 19:38:30 +0000 (UTC) From: Poul-Henning Kamp <phk@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/amd64/amd64 machdep.c src/sys/amd64/include clock.h src/sys/amd64/isa clock.c src/sys/arm/sa11x0 sa11x0_ost.c src/sys/i386/bios apm.c src/sys/i386/i386 machdep.c src/sys/i386/include clock.h src/sys/i386/isa clock.c pmtimer.c ... Message-ID: <200804221938.m3MJcUah093609@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
phk 2008-04-22 19:38:30 UTC FreeBSD src repository Modified files: sys/amd64/amd64 machdep.c sys/amd64/include clock.h sys/amd64/isa clock.c sys/arm/sa11x0 sa11x0_ost.c sys/i386/bios apm.c sys/i386/i386 machdep.c sys/i386/include clock.h sys/i386/isa clock.c pmtimer.c sys/ia64/ia64 clock.c machdep.c sys/kern subr_clock.c subr_rtc.c vfs_mount.c sys/nfsclient nfs_vfsops.c sys/pc98/cbus clock.c sys/pc98/pc98 machdep.c sys/powerpc/aim clock.c machdep.c sys/powerpc/booke clock.c sys/sys clock.h time.h Log: Now that all platforms use genclock, shuffle things around slightly for better structure. Much of this is related to <sys/clock.h>, which should really have been called <sys/calendar.h>, 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 <sys/clock.h> <sys/time.h> 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 <sys/time.h>. Retain the names as it is one of the few surviving PDP/VAX references. Move startrtclock() to <machine/clock.h> on relevant platforms, it is a MD call between machdep.c/clock.c. Remove references to it elsewhere. Remove a lot of unnecessary <sys/clock.h> 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. Revision Changes Path 1.685 +0 -1 src/sys/amd64/amd64/machdep.c 1.60 +1 -0 src/sys/amd64/include/clock.h 1.243 +0 -1 src/sys/amd64/isa/clock.c 1.8 +0 -1 src/sys/arm/sa11x0/sa11x0_ost.c 1.151 +0 -1 src/sys/i386/bios/apm.c 1.669 +0 -1 src/sys/i386/i386/machdep.c 1.62 +1 -0 src/sys/i386/include/clock.h 1.248 +0 -1 src/sys/i386/isa/clock.c 1.7 +0 -1 src/sys/i386/isa/pmtimer.c 1.34 +0 -2 src/sys/ia64/ia64/clock.c 1.237 +0 -1 src/sys/ia64/ia64/machdep.c 1.15 +2 -7 src/sys/kern/subr_clock.c 1.10 +7 -0 src/sys/kern/subr_rtc.c 1.280 +0 -1 src/sys/kern/vfs_mount.c 1.204 +0 -1 src/sys/nfsclient/nfs_vfsops.c 1.169 +0 -1 src/sys/pc98/cbus/clock.c 1.404 +0 -1 src/sys/pc98/pc98/machdep.c 1.33 +0 -1 src/sys/powerpc/aim/clock.c 1.113 +0 -1 src/sys/powerpc/aim/machdep.c 1.4 +0 -1 src/sys/powerpc/booke/clock.c 1.8 +13 -9 src/sys/sys/clock.h 1.77 +7 -0 src/sys/sys/time.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804221938.m3MJcUah093609>