The NetBSD Project

CVS log for src/sys/kern/kern_todr.c

[BACK] Up to [cvs.netbsd.org] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.33.6.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:32 2011 UTC (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.33: +4 -41 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

Sync with HEAD.

Revision 1.33.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:17 2011 UTC (14 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.33: +4 -41 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

sync with head

Revision 1.33.8.1 / (download) - annotate - [select for diffs], Thu Feb 17 12:00:44 2011 UTC (15 months, 1 week ago) by bouyer
Branch: bouyer-quota2
Changes since 1.33: +4 -41 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

Sync with HEAD

Revision 1.34 / (download) - annotate - [select for diffs], Tue Feb 8 20:20:27 2011 UTC (15 months, 2 weeks ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, HEAD
Changes since 1.33: +4 -41 lines
Diff to previous 1.33 (colored)

Remove clause 3 (UCB advertising clause) from the University of Utah
copyright.  Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.

Extra verification by snj@.

Revision 1.27.10.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:18 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.27.10.1: +22 -19 lines
Diff to previous 1.27.10.1 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored)

sync with head

Revision 1.33 / (download) - annotate - [select for diffs], Sat Jan 2 10:57:35 2010 UTC (2 years, 4 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: rmind-uvmplock, jruoho-x86intr, bouyer-quota2
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

Update default TOD value to 2010/01/01 12:00:00.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Dec 12 15:17:23 2009 UTC (2 years, 5 months ago) by tsutsui
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.31: +5 -5 lines
Diff to previous 1.31 (colored)

Remove `volatile' qualifier from argument types of
struct timeval passed to todr_gettime(9) and todr_settime(9).
We no longer have an ancient and volatile struct timeval `time'
global since we have switched to MI timercounter(9) on all port.

XXX1: some of these RTC drivers still assume 32bit time_t
XXX2: some of these should be rewritten to use todr_[gs]ettime_ymdhms()
XXX3: todr(9) man page doesn't mention todr_[gs]ettime_ymdhms()

Revision 1.31 / (download) - annotate - [select for diffs], Sat Dec 12 11:35:16 2009 UTC (2 years, 5 months ago) by tsutsui
Branch: MAIN
Changes since 1.30: +14 -11 lines
Diff to previous 1.30 (colored)

Use bool where appropriate.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Dec 12 11:28:40 2009 UTC (2 years, 5 months ago) by tsutsui
Branch: MAIN
Changes since 1.29: +6 -6 lines
Diff to previous 1.29 (colored)

Don't use int to get delta of time_t values.

Revision 1.27.24.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:57 2009 UTC (3 years ago) by jym
Branch: jym-xensuspend
Changes since 1.27: +5 -14 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.27.10.1 / (download) - annotate - [select for diffs], Mon May 4 08:13:47 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.27: +5 -14 lines
Diff to previous 1.27 (colored)

sync with head.

Revision 1.27.18.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:00 2009 UTC (3 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.27.18.1: +5 -4 lines
Diff to previous 1.27.18.1 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored)

Sync with HEAD.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Mar 21 15:01:57 2009 UTC (3 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.28: +5 -4 lines
Diff to previous 1.28 (colored)

Fix 'boot -z' bogons.

Revision 1.27.18.1 / (download) - annotate - [select for diffs], Tue Mar 3 18:32:56 2009 UTC (3 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.27: +2 -12 lines
Diff to previous 1.27 (colored)

Sync with HEAD.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Feb 14 20:45:29 2009 UTC (3 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Changes since 1.27: +2 -12 lines
Diff to previous 1.27 (colored)

remove 2038 comment

Revision 1.24.26.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:00 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.24.26.1: +2 -12 lines
Diff to previous 1.24.26.1 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

sync with HEAD

Revision 1.24.32.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:46 2008 UTC (4 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.24.32.2: +2 -12 lines
Diff to previous 1.24.32.2 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

Sync with HEAD.

Revision 1.25.6.2 / (download) - annotate - [select for diffs], Wed Jan 23 19:27:41 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.25.6.1: +0 -10 lines
Diff to previous 1.25.6.1 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored)

Sync with HEAD.

Revision 1.24.4.4 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:15 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.4.3: +7 -27 lines
Diff to previous 1.24.4.3 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

sync with head

Revision 1.27 / (download) - annotate - [select for diffs], Sun Jan 20 18:09:12 2008 UTC (4 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-net80211-sync-base, nick-net80211-sync, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, bouyer-xeni386-nbase, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, nick-hppapmap, jym-xensuspend
Changes since 1.26: +2 -12 lines
Diff to previous 1.26 (colored)

Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.

Revision 1.24.26.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:12 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.24: +9 -17 lines
Diff to previous 1.24 (colored)

sync with HEAD

Revision 1.25.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:56:04 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.25: +7 -17 lines
Diff to previous 1.25 (colored)

Sync with HEAD

Revision 1.24.32.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:04 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.24.32.1: +7 -17 lines
Diff to previous 1.24.32.1 (colored) to branchpoint 1.24 (colored)

Sync with HEAD.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:11 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.25: +7 -17 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

Sync with head.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Dec 22 00:35:32 2007 UTC (4 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base, bouyer-xeni386-base
Changes since 1.25: +7 -17 lines
Diff to previous 1.25 (colored)

reduce #ifdef __HAVE_TIMECOUNTER.

Revision 1.24.32.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:34 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (colored)

Sync with HEAD.

Revision 1.24.4.3 / (download) - annotate - [select for diffs], Fri Dec 7 17:32:53 2007 UTC (4 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.4.2: +4 -2 lines
Diff to previous 1.24.4.2 (colored) to branchpoint 1.24 (colored)

sync with head

Revision 1.24.24.1 / (download) - annotate - [select for diffs], Mon Dec 3 16:14:55 2007 UTC (4 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Sync with HEAD.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Nov 29 18:04:46 2007 UTC (4 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (colored)

Pull in sys/intr.h

Revision 1.24.4.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:06 2006 UTC (5 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.4.1: +367 -0 lines
Diff to previous 1.24.4.1 (colored) to branchpoint 1.24 (colored)

sync with head.

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:22 2006 UTC (5 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.12: +95 -31 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

Sync with head.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:11 2006 UTC (5 years, 7 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.22: +10 -12 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

sync with head

Revision 1.24.4.1, Sun Sep 24 18:24:55 2006 UTC (5 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24: +0 -367 lines
FILE REMOVED

file kern_todr.c was added on branch yamt-lazymbuf on 2006-12-30 20:50:06 +0000

Revision 1.24 / (download) - annotate - [select for diffs], Sun Sep 24 18:24:55 2006 UTC (5 years, 8 months ago) by peter
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, post-newlock2-merge, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-ufs-trans-base, mjf-ufs-trans, matt-nb4-arm-base, matt-nb4-arm, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-base, hpcarm-cleanup, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-audiomp-base, ad-audiomp
Branch point for: yamt-lazymbuf, mjf-devfs, matt-armv6, jmcneill-pm
Changes since 1.23: +5 -7 lines
Diff to previous 1.23 (colored)

Minor KNF, replace some spaces with tabs.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Sep 20 09:37:28 2006 UTC (5 years, 8 months ago) by tsutsui
Branch: MAIN
Changes since 1.22: +5 -5 lines
Diff to previous 1.22 (colored)

Tweak some debug messages.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Sep 16 00:50:52 2006 UTC (5 years, 8 months ago) by gdamore
Branch: MAIN
CVS Tags: yamt-splraiseipl-base
Branch point for: yamt-splraiseipl
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

Pass the filesystem time to clock drivers in the todr_chip_handle, so that
vax, and pmax can use it.

Revision 1.3.2.3 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:48 2006 UTC (5 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.3.2.2: +147 -11 lines
Diff to previous 1.3.2.2 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

sync with head.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Sep 12 21:38:55 2006 UTC (5 years, 8 months ago) by gdamore
Branch: MAIN
CVS Tags: yamt-pdpolicy-base9
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

Comment nit (remove first person), from simon@.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Sep 12 20:47:39 2006 UTC (5 years, 8 months ago) by gdamore
Branch: MAIN
Changes since 1.19: +17 -2 lines
Diff to previous 1.19 (colored)

Centralize rtc_offset handling for ports that __HAVE_GENERIC_TODR and use
a simple second counter instead of the clock_ymdhms support.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Sep 12 15:25:05 2006 UTC (5 years, 8 months ago) by gdamore
Branch: MAIN
Changes since 1.18: +17 -4 lines
Diff to previous 1.18 (colored)

Remove attempt to incorrectly support fictional double leap seconds.
While here, make the comparisions for hour, min, and sec use ">" consistently
like the date comparisions.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Sep 12 14:27:17 2006 UTC (5 years, 8 months ago) by gdamore
Branch: MAIN
Changes since 1.17: +31 -31 lines
Diff to previous 1.17 (colored)

Fix to compile on platforms without __HAVE_GENERIC_TODR.  Sorry about
that.  Pointed out jdc@ and he@.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Sep 12 05:47:47 2006 UTC (5 years, 8 months ago) by gdamore
Branch: MAIN
Changes since 1.16: +58 -21 lines
Diff to previous 1.16 (colored)

Add some optional debug (enabled with TODR_DEBUG) to see what your RTC
is giving you.  Also, while here, bump the threshold for "preposterous"
dates by 20 years.  Now any date earlier than late 1994 is considered
preposterous.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Sep 11 20:48:55 2006 UTC (5 years, 8 months ago) by gdamore
Branch: MAIN
Changes since 1.15: +2 -3 lines
Diff to previous 1.15 (colored)

Don't bother checking wday, that breaks some clock chips.  Thank to Kurt Schreiner <ks at ub dot uni-mainz dot de>.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Sep 10 16:25:32 2006 UTC (5 years, 8 months ago) by gdamore
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Allow for leap seconds.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Sep 10 14:06:54 2006 UTC (5 years, 8 months ago) by gavan
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

dsrtc_settime already takes a volatile struct timeval *, also qualify
with volatile for dsrtc_gettime.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Sep 10 07:06:48 2006 UTC (5 years, 8 months ago) by tsutsui
Branch: MAIN
Changes since 1.12: +6 -4 lines
Diff to previous 1.12 (colored)

- add more sanity checks (from playstation2/clock.c)
- fix a typo

Revision 1.12.4.2 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:16 2006 UTC (5 years, 8 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.12.4.1: +303 -0 lines
Diff to previous 1.12.4.1 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

sync with head

Revision 1.12.4.1, Thu Sep 7 15:49:49 2006 UTC (5 years, 8 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.12: +0 -303 lines
FILE REMOVED

file kern_todr.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:57:16 +0000

Revision 1.12 / (download) - annotate - [select for diffs], Thu Sep 7 15:49:49 2006 UTC (5 years, 8 months ago) by gdamore
Branch: MAIN
CVS Tags: rpaulo-netinet-merge-pcb-base
Branch point for: rpaulo-netinet-merge-pcb, newlock2
Changes since 1.11: +5 -2 lines
Diff to previous 1.11 (colored)

Run tc_setclock at splclock().  Suggested by kardel@.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Sep 7 07:26:07 2006 UTC (5 years, 8 months ago) by dogcow
Branch: MAIN
Changes since 1.10: +4 -5 lines
Diff to previous 1.10 (colored)

Now compiles on systems without __HAVE_GENERIC_TODR

Revision 1.10 / (download) - annotate - [select for diffs], Thu Sep 7 04:51:42 2006 UTC (5 years, 8 months ago) by gdamore
Branch: MAIN
Changes since 1.9: +15 -16 lines
Diff to previous 1.9 (colored)

Eliminate the 2038 year check, because clock_ymdhms_to_sec already performs
that check.  So instead, we test to make sure we have a non-negative second
after the conversion.

While here, we also add a check to round the second counter up when setting
time if we are more than half-way into the second.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Sep 7 04:24:26 2006 UTC (5 years, 8 months ago) by gdamore
Branch: MAIN
Changes since 1.8: +7 -2 lines
Diff to previous 1.8 (colored)

Add a few consistency checks for ymdhms.  Taken from the mc146818 code.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Sep 7 01:50:49 2006 UTC (5 years, 8 months ago) by uwe
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Make timeval argument to todr_settime volatile to keep non-timecounter
ports happy.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Sep 7 01:43:52 2006 UTC (5 years, 8 months ago) by uwe
Branch: MAIN
Changes since 1.6: +5 -6 lines
Diff to previous 1.6 (colored)

Mark sizeof(tvp->tv_sec) check CONSTCOND.
No space between the sizeof and the paren.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Sep 7 00:10:49 2006 UTC (5 years, 8 months ago) by gdamore
Branch: MAIN
Changes since 1.5: +55 -2 lines
Diff to previous 1.5 (colored)

Add support for new todr entry points for drivers- todr_gettime_ymdhms and
todr_settime_ymdhms.  This allows drivers to avoid repeated conversions, and
allows us to centralize check for Y2038 overflow.   As discussed on
tech-kern.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Sep 5 19:32:17 2006 UTC (5 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.4: +9 -5 lines
Diff to previous 1.4 (colored)

Before calling todr_gettime, fill in tv.tv_sec.  At least one port (vax)
needs that functionality.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Sep 3 17:13:04 2006 UTC (5 years, 8 months ago) by gdamore
Branch: MAIN
Changes since 1.3: +11 -3 lines
Diff to previous 1.3 (colored)

Update the base time (used when no filesystem or rtc time exists) to 12pm,
Jan 1, 2006. This is somewhat arbitrary, but its a heck of a lot better than
mid 1991. :-)

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:22 2006 UTC (5 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.3.2.1: +233 -0 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored)

sync with head.

Revision 1.3.2.1, Sun Sep 3 06:37:55 2006 UTC (5 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.3: +0 -233 lines
FILE REMOVED

file kern_todr.c was added on branch yamt-pdpolicy on 2006-09-03 15:25:22 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Sun Sep 3 06:37:55 2006 UTC (5 years, 8 months ago) by gdamore
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8
Branch point for: yamt-pdpolicy
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Don't warn about RTC losing/gaining days if the filesystem time is bogus.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Sep 3 05:25:05 2006 UTC (5 years, 8 months ago) by gdamore
Branch: MAIN
Changes since 1.1: +72 -34 lines
Diff to previous 1.1 (colored)

Incorporate changes from x86/i386 as follows:

1) don't set a clock when panicing during early boot
2) if the filesystem time is newer than the rtc time (by at least 2 days) then
revert to the filesystem time.
3) use x86 style messaging.

We still use a threshold of 2 days of gain or loss in time to warn though.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Sep 2 20:18:00 2006 UTC (5 years, 8 months ago) by gdamore
Branch: MAIN

Add MI implementation of inittodr, todr_attach, and resettodr.

This is triggered upon __HAVE_GENRIC_TODR in machine/types.h.  Conversion of
evbmips port forthcoming.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>