diff options
author | phk <phk@FreeBSD.org> | 2008-04-13 21:20:26 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2008-04-13 21:20:26 +0000 |
commit | 0fbd1630599ae23c726b34eac8f62f0dcad3704a (patch) | |
tree | 24f0726a733f1593dfade6fb91e508478aaa7299 /sys/powerpc/booke | |
parent | 23cff967410afb5960f7621f1161bad524ae2783 (diff) | |
download | FreeBSD-src-0fbd1630599ae23c726b34eac8f62f0dcad3704a.zip FreeBSD-src-0fbd1630599ae23c726b34eac8f62f0dcad3704a.tar.gz |
Get rid of an empty RTC implementation and hook up genclock instead.
Diffstat (limited to 'sys/powerpc/booke')
-rw-r--r-- | sys/powerpc/booke/clock.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/sys/powerpc/booke/clock.c b/sys/powerpc/booke/clock.c index c05e1d1..3ba58c0 100644 --- a/sys/powerpc/booke/clock.c +++ b/sys/powerpc/booke/clock.c @@ -84,7 +84,6 @@ static long ticks_per_intr; #define DIFF19041970 2082844800 -static int clockinitted = 0; static timecounter_get_t decr_get_timecount; static struct timecounter decr_timecounter = { @@ -96,49 +95,6 @@ static struct timecounter decr_timecounter = { }; void -inittodr(time_t base) -{ - time_t deltat; - u_int rtc_time; - struct timespec ts; - - /* - * If we have an RTC device use it, otherwise use the fs time. - */ - { - ts.tv_sec = base; - ts.tv_nsec = 0; - tc_setclock(&ts); - return; - } - clockinitted = 1; - ts.tv_sec = rtc_time - DIFF19041970; - - deltat = ts.tv_sec - base; - if (deltat < 0) { - deltat = -deltat; - } - if (deltat < 2 * SECDAY) { - tc_setclock(&ts); - return; - } - - printf("WARNING: clock %s %d days", - ts.tv_sec < base ? "lost" : "gained", (int)(deltat / SECDAY)); - - printf(" -- CHECK AND RESET THE DATE!\n"); -} - -/* - * Similar to the above - */ -void -resettodr() -{ - -} - -void decr_intr(struct trapframe *frame) { u_long msr; |