freebsd-nq/sys/powerpc
Poul-Henning Kamp 9b4a8ab7ba 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.
2008-04-22 19:38:30 +00:00
..
aim Now that all platforms use genclock, shuffle things around slightly 2008-04-22 19:38:30 +00:00
booke Now that all platforms use genclock, shuffle things around slightly 2008-04-22 19:38:30 +00:00
compile
conf Make genclock standard on all platforms. 2008-04-21 10:09:55 +00:00
fpu Include <sys/types.h> before <sys/systm.h> to get typedefs required 2008-04-09 08:50:37 +00:00
include Fix copy-n-paste typos in free text. 2008-04-10 02:37:26 +00:00
mpc85xx Obtain TSEC h/w address from the parent bus (OCP) and not rely blindly on what 2008-03-12 16:32:08 +00:00
ofw
powermac Add support for the BUS_CONFIG_INTR() method to the platform and to 2008-03-07 22:08:43 +00:00
powerpc - Add the interrupt vector number to intr_event_create so MI code can 2008-04-11 03:26:41 +00:00
psim Set sc_psim so that the openpic core can correct the off-by-one 2008-04-03 17:38:27 +00:00