The NetBSD Project

CVS log for src/sys/sys/timevar.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / sys

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.33 / (download) - annotate - [select for diffs], Fri Mar 29 01:09:45 2013 UTC (8 weeks, 1 day ago) by christos
Branch: MAIN
CVS Tags: khorben-n900, HEAD
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

prototype adjustments for lwp_park, welcome to 6.99.19

Revision 1.32 / (download) - annotate - [select for diffs], Tue Oct 2 01:44:29 2012 UTC (7 months, 3 weeks ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-nbase, tls-maxphys-base, agc-symver-base, agc-symver
Changes since 1.31: +3 -2 lines
Diff to previous 1.31 (colored)

kernel portion of clock_nanosleep()

Revision 1.31 / (download) - annotate - [select for diffs], Tue Feb 21 15:41:24 2012 UTC (15 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

Make time_second and time_uptime volatile, so the compiler knows they
may change during loops. Fixes the macppc build, which previously
died with:
src/sys/arch/macppc/dev/dbdma.c:62:6: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false

Revision 1.30 / (download) - annotate - [select for diffs], Sun Dec 18 22:30:25 2011 UTC (17 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base2
Changes since 1.29: +2 -1 lines
Diff to previous 1.29 (colored)

Fix monotonic interval timers.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Apr 8 11:51:13 2010 UTC (3 years, 1 month ago) by njoly
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

Add a new clock_gettime1() function that holds most of the
clock_gettime syscall code (except for the copyout). Adjust all
corresponding syscalls to make use of it.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Apr 3 17:20:05 2010 UTC (3 years, 1 month ago) by njoly
Branch: MAIN
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored)

Move most clock_getres syscall code, except for coypout call, to a new
clock_getres1() function which can be used by emulations. Adjust all
clock_getres syscalls to now make of use it.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Nov 1 21:46:09 2009 UTC (3 years, 6 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

- Move inittimeleft() and gettimeleft() to subr_time.c, where they belong.
- Move abstimeout2timo() there too and export.  Use it in lwp_park().

Revision 1.26 / (download) - annotate - [select for diffs], Sat Oct 3 20:48:42 2009 UTC (3 years, 7 months ago) by elad
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

Introduce time_wraps() to check if setting the time will wrap it (or
close to it). Useful for secmodels.

Replace open-coded form with it in secmodel code (securelevel, keylock).

Note: I need to find a way to make secmodel_keylock.c ~<100 lines.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Mar 29 19:21:20 2009 UTC (4 years, 1 month ago) by christos
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-base
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

Move the internal poll/select related API's to use timespec instead
of timeval (rides the uvm bump).

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jan 11 02:45:56 2009 UTC (4 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

merge christos-time_t

Revision 1.23 / (download) - annotate - [select for diffs], Tue Jul 15 16:18:09 2008 UTC (4 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2, 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, 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, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, christos-time_t-nbase, christos-time_t-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap
Changes since 1.22: +7 -6 lines
Diff to previous 1.22 (colored)

Use more timespecs internally. From Alexander Shishkin and me.
Welcome to 4.99.70, 30 more to go for 100.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Apr 29 06:53:03 2008 UTC (5 years ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, simonb-wapbl, haad-dm
Changes since 1.21: +1 -4 lines
Diff to previous 1.21 (colored)

Convert to new 2 clause license

Revision 1.21 / (download) - annotate - [select for diffs], Mon Apr 21 00:13:46 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.20: +7 -5 lines
Diff to previous 1.20 (colored)

timer fixes for PR 37093:

- Fix serious concurrency problems, making the code MT and MP safe in
  the process.
- Don't allocate memory or inspect process state from hardclock().

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jan 20 18:09:13 2008 UTC (5 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, ad-socklock-base1
Branch point for: yamt-pf42, mjf-devfs2, christos-time_t
Changes since 1.19: +1 -8 lines
Diff to previous 1.19 (colored)

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

Revision 1.19 / (download) - annotate - [select for diffs], Sat Dec 22 00:34:37 2007 UTC (5 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base, bouyer-xeni386-base
Changes since 1.18: +1 -15 lines
Diff to previous 1.18 (colored)

provide binuptime etc for !__HAVE_TIMECOUNTER.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Nov 25 00:35:28 2007 UTC (5 years, 6 months ago) by elad
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.17: +2 -2 lines
Diff to previous 1.17 (colored)

Refactor time modification checks and place them in the secmodel code.

okay christos@

Revision 1.17 / (download) - annotate - [select for diffs], Fri Nov 16 01:21:24 2007 UTC (5 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Changes since 1.16: +1 -3 lines
Diff to previous 1.16 (colored)

Work around broken MD headers.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Nov 15 20:12:04 2007 UTC (5 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.15: +4 -1 lines
Diff to previous 1.15 (colored)

Add a bit of locking around timecounter attachment / selection.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Oct 22 05:26:42 2007 UTC (5 years, 7 months ago) by simonb
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.14: +4 -3 lines
Diff to previous 1.14 (colored)

Adjust the comment about "10 msec" to say that the time period is 1/HZ.

Requested by joerg@

Revision 1.14 / (download) - annotate - [select for diffs], Mon Sep 10 10:35:55 2007 UTC (5 years, 8 months ago) by cube
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base
Branch point for: bouyer-xenamd64
Changes since 1.13: +2 -9 lines
Diff to previous 1.13 (colored)

Remove 3rd clause and my name from all the licences which were only in my
name.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Aug 7 11:39:18 2007 UTC (5 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base5
Branch point for: matt-armv6
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)

Export itimespecfix() until itimerfix() dies.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jul 9 21:11:33 2007 UTC (5 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, jmcneill-pm
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.11 / (download) - annotate - [select for diffs], Sun May 13 14:43:52 2007 UTC (6 years ago) by dsl
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.10: +1 -5 lines
Diff to previous 1.10 (colored)

Instead of the #define versions of tc_getfrequency() and nanouptime(), use
the function ones in kern_kern_clock.c (adding tc_getfrequency).
Adjust includes so this builds.

Revision 1.10 / (download) - annotate - [select for diffs], Sun May 13 10:58:50 2007 UTC (6 years ago) by dsl
Branch: MAIN
Changes since 1.9: +4 -1 lines
Diff to previous 1.9 (colored)

Add a #define for nanouptime() in the !__HAVE_TIMECOUNTERS case.

Revision 1.9 / (download) - annotate - [select for diffs], Sun May 13 10:34:25 2007 UTC (6 years ago) by dsl
Branch: MAIN
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (colored)

Split sys_nanosleep().

Revision 1.8 / (download) - annotate - [select for diffs], Sat May 12 20:27:57 2007 UTC (6 years ago) by dsl
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Change interface to settimeofday1() so that it can also be used from
compat code in order to avoid the stackgap.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:37 2007 UTC (6 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, post-newlock2-merge, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, vmlocking, mjf-ufs-trans
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

Merge newlock2 to head.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:14 2006 UTC (6 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, rpaulo-netinet-merge-pcb-base, 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, matt-nb4-arm-base, matt-nb4-arm, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: newlock2
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Use the LWP cached credentials where sane.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jul 14 22:33:50 2006 UTC (6 years, 10 months ago) by kardel
Branch: MAIN
Changes since 1.4: +3 -1 lines
Diff to previous 1.4 (colored)

make inittimeleft() and gettimeleft() available (for e. g. kern_event.c)

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jun 7 22:34:18 2006 UTC (6 years, 11 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base
Branch point for: yamt-lazymbuf
Changes since 1.3: +159 -6 lines
Diff to previous 1.3 (colored)

merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html

Revision 1.3 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:21 2005 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, peter-altq-base, peter-altq, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, chap-midi
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

merge ktrace-lwp.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Oct 24 13:43:27 2005 UTC (7 years, 7 months ago) by simonb
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, ktrace-lwp-base
Branch point for: yamt-vop, ktrace-lwp
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Add a "/* !_SYS_TIMEVAR_H_ */" comment to the #endif at the bottom
of this file.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Oct 23 00:09:14 2005 UTC (7 years, 7 months ago) by cube
Branch: MAIN
CVS Tags: thorpej-vnode-attr-base, thorpej-vnode-attr

Implement a few changes needed to properly resolve PR#30924, as
discussed in the PR.

- introduce sys/timevar.h to hold kernel-specific stuff relevant to
  sys/time.h.  Ideally, timevar.h would contain all (or almost) of the
  #ifdef _KERNEL part of time.h, but that's a pretty big and tedious
  change to make.  For now, it will contain only the prototypes I
  introduced when working on COMPAT_NETBSD32.

- split copyinout_t into copyin_t and copyout_t, it makes prototypes more
  explicit about the meaning of a given argument.  Suggested by yamt@.

- move copyinout_t definition in sys/time.h to systm.h as copyin_t and
  copyout_t

- make everything uses the new types and include the proper headers at
  the proper places.

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>