The NetBSD Project

CVS log for src/sys/arch/alpha/alpha/clock.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.47 / (download) - annotate - [select for diffs], Tue Apr 5 04:33:36 2022 UTC (9 months, 3 weeks ago) by skrll
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

KNF

Revision 1.46 / (download) - annotate - [select for diffs], Sat Oct 10 03:05:04 2020 UTC (2 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.45: +5 -2 lines
Diff to previous 1.45 (colored)

Fix cycle counter-based time keeping on Alpha in MP environments by using
a simpler calibration algorithm for the CC timecounter.  Proposed in 2018
by Naruaki Etomi:

    https://mail-index.netbsd.org/tech-kern/2018/01/14/msg022940.html

This patch is largely based on the proposed change, but avoids changing
any other timecounter logic, and re-factors things a bit to keep them
as MI as possible.

Revision 1.45 / (download) - annotate - [select for diffs], Tue Sep 29 01:33:00 2020 UTC (2 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.44: +20 -4 lines
Diff to previous 1.44 (colored)

Improve time keeping and host CPU usage when running in Qemu:
- clockattach(): Allow multiple calls when running in Qemu. Anything
  after this first one is ignored, but this gives us a change to use
  a clock source provided by the VM directly, rather than relying on
  a more expensive hardware emulation.
- Add cpu_initclocks_secondary(), to handle clock setup on secondary
  CPUs, if needed.
- Allow us to use the WTINT PALcode call in cpu_idle() to idle in a lower
  power state (Qemu's PALcode supports this).
- Use the Qemu per-cpu set-alarm-rel call as the hardclock interrupt
  source.  In Qemu environments, reduce hz to 50 (rather than the
  default 1024) to give the clock a snowball's chance when running on
  a host system with hz=100.  XXX We have to manually re-calculate
  tick and tickadj.  There should be MI code to do this for us.  Also
  in Qemu environments, let hardclock() drive the sched clock by setting
  schedhz=0.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Sep 27 23:17:36 2020 UTC (2 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.43: +9 -6 lines
Diff to previous 1.43 (colored)

Don't use the PCC timecunter on emulated Qemu systems.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Sep 4 03:41:49 2020 UTC (2 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.42: +3 -2 lines
Diff to previous 1.42 (colored)

Include <sys/lwp.h>

Revision 1.41.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:53 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.41: +5 -5 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

sync with head

Revision 1.41.8.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:30:46 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.41: +5 -5 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

merge to -current.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Feb 6 02:14:10 2012 UTC (10 years, 11 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base-20171202, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, nick-nhusb, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, 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-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb8-mediatek-base, matt-nb8-mediatek, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, localcount-20160914, khorben-n900, 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-base10, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.41: +5 -5 lines
Diff to previous 1.41 (colored)

Do a minor cleanup of alpha (this will make applying pullups post branching
easier).
u_int{8,16,32,64}_t -> uint{*}_t
Change all old-style definitions to C89 prototypes.
Whitespace cleanup.
Constification in db_disasm.c

Revision 1.40.6.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:04:43 2011 UTC (11 years, 7 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.40: +4 -43 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

Sync with HEAD.

Revision 1.40.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:49:09 2011 UTC (11 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.40: +4 -43 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

sync with head

Revision 1.40.8.1 / (download) - annotate - [select for diffs], Thu Feb 17 11:59:29 2011 UTC (11 years, 11 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.40: +4 -43 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

Sync with HEAD

Revision 1.41 / (download) - annotate - [select for diffs], Tue Feb 8 20:20:07 2011 UTC (11 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, uebayasi-xip-base7, rmind-uvmplock-nbase, rmind-uvmplock-base, jym-xensuspend-nbase, jym-xensuspend-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.40: +4 -43 lines
Diff to previous 1.40 (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.39.18.1 / (download) - annotate - [select for diffs], Wed May 13 17:16:04 2009 UTC (13 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.39: +3 -4 lines
Diff to previous 1.39 (colored) next main 1.40 (colored)

Sync with HEAD.

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

Revision 1.39.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:10:27 2009 UTC (13 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.39: +3 -4 lines
Diff to previous 1.39 (colored) next main 1.40 (colored)

sync with head.

Revision 1.39.12.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:33:33 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.39: +3 -4 lines
Diff to previous 1.39 (colored) next main 1.40 (colored)

Sync with HEAD.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Mar 14 15:35:59 2009 UTC (13 years, 10 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jruoho-x86intr-base
Branch point for: rmind-uvmplock, jruoho-x86intr, bouyer-quota2
Changes since 1.39: +3 -4 lines
Diff to previous 1.39 (colored)

Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)

Revision 1.38.16.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:21:45 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

Sync with HEAD.

Revision 1.39 / (download) - annotate - [select for diffs], Sat Apr 5 18:17:36 2008 UTC (14 years, 9 months ago) by tsutsui
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, 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-hppapmap-base2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, 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-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, 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, 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, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, nick-hppapmap, jym-xensuspend
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

Allow MD cycle counter routines to pass their own optimized
tc_get_timecount function to MI cc_init().

Revision 1.37.6.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:13:40 2007 UTC (15 years, 2 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

sync with HEAD

Revision 1.38 / (download) - annotate - [select for diffs], Wed Oct 17 19:52:54 2007 UTC (15 years, 3 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, mjf-devfs, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.

Revision 1.36.38.1 / (download) - annotate - [select for diffs], Wed Oct 3 19:21:54 2007 UTC (15 years, 4 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.36: +21 -180 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

Sync with HEAD

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 14:22:12 2007 UTC (15 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.35: +21 -180 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

sync with head.

Revision 1.36.30.1 / (download) - annotate - [select for diffs], Mon Aug 20 18:36:43 2007 UTC (15 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.36: +21 -180 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

Sync with HEAD.

Revision 1.36.44.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:46:56 2007 UTC (15 years, 5 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.36: +21 -180 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

Sync with HEAD.

Revision 1.36.42.1 / (download) - annotate - [select for diffs], Tue Aug 7 18:04:50 2007 UTC (15 years, 5 months ago) by matt
Branch: matt-mips64
Changes since 1.36: +21 -180 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

Sync with HEAD.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Jul 21 11:59:55 2007 UTC (15 years, 6 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, ppcoea-renovation-base, nick-csl-alignment-base5, matt-mips64-base, jmcneill-pm, hpcarm-cleanup, bouyer-xenamd64
Branch point for: matt-armv6
Changes since 1.36: +21 -180 lines
Diff to previous 1.36 (colored)

Add MI todr(9) support and timercounter(9) support with kern_cctr.c to alpha:
- use todr(9) API with MI mc146818(4) driver and remove homegrown
  todr stuff from MD alpha/clock.c and alpha/mcclock.c
- also remove obsolete cc_microtime stuff from MD code
- add ci_pcc_freq member in struct cpu_info for cpu_frequency(), and
  calibrate it with mc146818 interval clock in mcclock attachment
- call cc_init() in cpu_initclocks(9) because all alpha cpus have
  a pcc counter

Tested on DEC 3000/300 and AlphaPC 164, but not on any SMP machines yet.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Dec 11 12:16:10 2005 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, 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, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, thorpej-atomic-base, thorpej-atomic, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, reinoud-bufcleanup, post-newlock2-merge, peter-altq-base, peter-altq, nick-csl-alignment-base, newlock2-nbase, newlock2-base, newlock2, 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, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: vmlocking, ppcoea-renovation, nick-csl-alignment, matt-mips64
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

merge ktrace-lwp.

Revision 1.33.2.4 / (download) - annotate - [select for diffs], Thu Nov 10 13:48:21 2005 UTC (17 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.33.2.3: +4 -4 lines
Diff to previous 1.33.2.3 (colored) next main 1.34 (colored)

Sync with HEAD. Here we go again...

Revision 1.35 / (download) - annotate - [select for diffs], Wed Jun 1 16:13:45 2005 UTC (17 years, 8 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored)

typo in comment

Revision 1.33.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:11:44 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.33.2.2: +2 -2 lines
Diff to previous 1.33.2.2 (colored)

Fix the sync with head I botched.

Revision 1.33.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:30:53 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.33.2.1: +0 -0 lines
Diff to previous 1.33.2.1 (colored)

Sync with HEAD.

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:31:03 2004 UTC (18 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.33: +37 -3 lines
Diff to previous 1.33 (colored)

Sync with HEAD

Revision 1.34 / (download) - annotate - [select for diffs], Thu Aug 7 16:26:31 2003 UTC (19 years, 5 months ago) by agc
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Changes since 1.33: +37 -3 lines
Diff to previous 1.33 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jun 23 11:01:00 2003 UTC (19 years, 7 months ago) by martin
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.32: +4 -2 lines
Diff to previous 1.32 (colored)

Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Feb 5 12:16:41 2003 UTC (19 years, 11 months ago) by nakayama
Branch: MAIN
Changes since 1.31: +6 -6 lines
Diff to previous 1.31 (colored)

Share alpha/microtime.c with i386 and sparc64 as kern_microtime.c.
(approved by martin)

Revision 1.29.4.1 / (download) - annotate - [select for diffs], Thu Jun 21 18:12:51 2001 UTC (21 years, 7 months ago) by nathanw
Changes since 1.29: +10 -13 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Catch up to -current.

Revision 1.31.4.2 / (download) - annotate - [select for diffs], Sun May 27 13:53:25 2001 UTC (21 years, 8 months ago) by sommerfeld
Branch: nathanw_sa
Changes since 1.31.4.1: +285 -0 lines
Diff to previous 1.31.4.1 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored)

Assorted microtime fixes (similar to fixes I made yesterday when
porting this code to i386mp branch):

 - call microset() early on each cpu so that calls to microtime()
before the first clock interrupt don't return trash.  this manifested
itself as garbage runtimes in "ps" for kernel threads.
 - avoid races between hardclock updating "time" and microset on a
different cpu reading it by adding a "microset_time" global which is
initialized from "time" on the primary cpu.
 - call microset every hz ticks, not every hz+1 (cosmetic)

Revision 1.31.4.1, Sun May 27 13:53:24 2001 UTC (21 years, 8 months ago) by sommerfeld
Branch: nathanw_sa
Changes since 1.31: +0 -285 lines
FILE REMOVED

file clock.c was added on branch nathanw_sa on 2001-05-27 13:53:25 +0000

Revision 1.31 / (download) - annotate - [select for diffs], Sun May 27 13:53:24 2001 UTC (21 years, 8 months ago) by sommerfeld
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf, newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, nathanw_sa_end, nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, kqueue, ifpoll-base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base, eeh-devprop-base, eeh-devprop
Branch point for: nathanw_sa
Changes since 1.30: +10 -2 lines
Diff to previous 1.30 (colored)

Assorted microtime fixes (similar to fixes I made yesterday when
porting this code to i386mp branch):

 - call microset() early on each cpu so that calls to microtime()
before the first clock interrupt don't return trash.  this manifested
itself as garbage runtimes in "ps" for kernel threads.
 - avoid races between hardclock updating "time" and microset on a
different cpu reading it by adding a "microset_time" global which is
initialized from "time" on the primary cpu.
 - call microset every hz ticks, not every hz+1 (cosmetic)

Revision 1.30 / (download) - annotate - [select for diffs], Sat Apr 28 06:10:49 2001 UTC (21 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.29: +2 -13 lines
Diff to previous 1.29 (colored)

Add a microtime() implementation that interpolates between ticks
using the cycle counter.  MP-safeness is achieved by giving each
CPU its own PCC frequency variables, and kicking the non-primary
processors via an IPI once per second.

Based on the sample code from David Mills' "A Kernel Model for
Precision Timekeeping".

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 19:56:20 2000 UTC (22 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.26: +3 -6 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.26.10.1 / (download) - annotate - [select for diffs], Thu Jun 22 16:58:09 2000 UTC (22 years, 7 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.26: +3 -6 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jun 5 21:47:10 2000 UTC (22 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5
Changes since 1.28: +2 -6 lines
Diff to previous 1.28 (colored)

Switch to the new `evcnt' mechanism for counting interrupts.  Maintain
a per-CPU interrupt counter for clock, device, and interprocessor
interrupts.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Jun 4 19:14:18 2000 UTC (22 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.27: +4 -3 lines
Diff to previous 1.27 (colored)

Implement the more flexiable `evcnt' interface as discussed (briefly) on
tech-kern and now documented in evcnt(9).

Revision 1.27 / (download) - annotate - [select for diffs], Sat Jun 3 20:47:36 2000 UTC (22 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

- Clean up clock interrupt code a bit, and provide a CPU_IS_PRIMARY()
  macro in the MULTIPROCESSOR case (hardclock() wants it).
- Implement __GENERIC_SOFT_INTERRUPTS, and redefine the legacy
  software interrupts in terms of it.  Garbage-collect setsoftserial().

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Sun Oct 10 23:21:30 1999 UTC (23 years, 3 months ago) by cgd
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.25: +14 -2 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

pull up rev 1.26 from trunk (requested by sommerfeld):
  Patch time_precision so we report a realistic NTP "precision"
  value to userland.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Sep 6 21:54:17 1999 UTC (23 years, 4 months ago) by sommerfeld
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, minoura-xpg4dl-base, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase
Branch point for: thorpej_scsipi, minoura-xpg4dl
Changes since 1.25: +14 -2 lines
Diff to previous 1.25 (colored)

Patch time_precision so we report a realistic NTP "precision" value to userland.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Mar 4 06:46:43 1999 UTC (23 years, 11 months ago) by chs
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc2-base, chs-ubc2
Branch point for: netbsd-1-4
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

fix printf format types.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Feb 23 02:56:40 1999 UTC (23 years, 11 months ago) by ross
Branch: MAIN
Changes since 1.23: +4 -2 lines
Diff to previous 1.23 (colored)

Generate the new schedclk() call into the MI kernel. Set schedhz
here to indicate that.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Feb 12 06:30:08 1999 UTC (23 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.22: +5 -4 lines
Diff to previous 1.22 (colored)

Fix printf format problems on Alpha.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Sep 29 18:23:55 1998 UTC (24 years, 4 months ago) by drochner
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.21: +57 -58 lines
Diff to previous 1.21 (colored)

Allow to use the RTC chip in a way compatible to OSF/1: use an offset
of 52 years between RTC and UNIX time.
This is controlled by "option CLOCK_COMPAT_OSF1".

Revision 1.21 / (download) - annotate - [select for diffs], Mon Aug 24 02:37:16 1998 UTC (24 years, 5 months ago) by tv
Branch: MAIN
Changes since 1.20: +2 -4 lines
Diff to previous 1.20 (colored)

egcs warning fixes, clean up `register'

Revision 1.20 / (download) - annotate - [select for diffs], Sat Jan 31 10:32:47 1998 UTC (25 years ago) by ross
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.19: +2 -4 lines
Diff to previous 1.19 (colored)

Remove the #include of rpb.h from clock.c and set hz from the hwrpb
in alpha_init() instead of from a hardwired 1024 in cpu_initclocks().

Revision 1.17.2.2 / (download) - annotate - [select for diffs], Mon Sep 29 07:19:32 1997 UTC (25 years, 4 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.17.2.1: +4 -3 lines
Diff to previous 1.17.2.1 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Sep 23 23:15:43 1997 UTC (25 years, 4 months ago) by mjacob
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-base
Changes since 1.18: +4 -3 lines
Diff to previous 1.18 (colored)

Redo the platform specific identification and initialization, making
it more explicit where platform specific functions (like machine check
handling) should go.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Thu Sep 4 00:52:19 1997 UTC (25 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.17: +2 -3 lines
Diff to previous 1.17 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Sep 2 13:17:58 1997 UTC (25 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal
Changes since 1.17: +2 -3 lines
Diff to previous 1.17 (colored)

Nuke the idea of <machine/options.h>.  It completely defeats the purpose
of fine-grain option dependencies.

Revision 1.14.2.2 / (download) - annotate - [select for diffs], Tue Aug 12 05:54:35 1997 UTC (25 years, 5 months ago) by cgd
Branch: alpha-nwscons
Changes since 1.14.2.1: +3 -3 lines
Diff to previous 1.14.2.1 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

sync with -current as of August 11, 1997

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jul 22 18:50:52 1997 UTC (25 years, 6 months ago) by jonathan
Branch: MAIN
CVS Tags: marc-pcmcia-bp, alpha-nwscons-base
Branch point for: marc-pcmcia
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Use new <dev/dec/clockvar.h> and and <dev/dec/mcclokvar.h>.
Garbage-collect original headers from sys/arch/alpha.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Sun Jun 1 04:11:07 1997 UTC (25 years, 8 months ago) by cgd
Branch: alpha-nwscons
Changes since 1.14: +6 -1 lines
Diff to previous 1.14 (colored)

sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Apr 7 23:39:40 1997 UTC (25 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.15: +5 -2 lines
Diff to previous 1.15 (colored)

by default, provide RCS IDs for NetBSD/alpha kernel files in kernel binaries.
This can be disabled (to save a bit of space) with the NO_KERNEL_RCSIDS
options, which is present but commented out in the ALPHA config file.
In ELF-format kernels, these strings are present in the kernel binary but
are not loaded into memory.  (In ECOFF-format kernels, there's no easy way
to keep them from being loaded, so they _are_ loaded into memory.)

Revision 1.15 / (download) - annotate - [select for diffs], Mon Apr 7 00:19:11 1997 UTC (25 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored)

clean up NetBSD RCS ID strings, include machine/options.h

Revision 1.14 / (download) - annotate - [select for diffs], Sat Nov 23 06:31:57 1996 UTC (26 years, 2 months ago) by cgd
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Branch point for: alpha-nwscons
Changes since 1.13: +19 -6 lines
Diff to previous 1.13 (colored)

move interrupt establishment to just before clock interrupts are
enabled (from the attach routine), and add comments as to why.
Some PALcode apparently 'saves' a clock interrupt for the kernel,
and if the clock interrupt handler is enabled at attach time, it
will be run when that interrupt hits, i.e. right after the spl0()
at the end of autoconfiguration.  That would cause hardclock to be
run, but proc0's p_stats isn't set up by then, which would cause
hardclock to crash.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Oct 13 02:59:25 1996 UTC (26 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.12: +6 -6 lines
Diff to previous 1.12 (colored)

backout previous kprintf change

Revision 1.12 / (download) - annotate - [select for diffs], Thu Oct 10 23:50:17 1996 UTC (26 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.11: +6 -6 lines
Diff to previous 1.11 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jul 11 03:47:55 1996 UTC (26 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.10: +5 -6 lines
Diff to previous 1.10 (colored)

clean up for -Wall

Revision 1.10 / (download) - annotate - [select for diffs], Tue Apr 23 15:26:06 1996 UTC (26 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

prototyping cleanups

Revision 1.9 / (download) - annotate - [select for diffs], Wed Apr 17 22:01:16 1996 UTC (26 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.8: +19 -94 lines
Diff to previous 1.8 (colored)

clean up clock handling: clock drivers are now seperate from the
chip-independent clock code.  'clock' has been renamed 'mcclock'  'clock'
has been renamed 'mcclock' (since it's a driver for that particular
clock, and since eventually there may be another clock chip driver),
and now attaches via seperate match/attach functions to both TC and ISA.
This removes a whole lot of #ifdefs...

Revision 1.8 / (download) - annotate - [select for diffs], Fri Apr 12 02:05:14 1996 UTC (26 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.7: +13 -20 lines
Diff to previous 1.7 (colored)

update for new ISA & bus code, and clean a bit

Revision 1.7 / (download) - annotate - [select for diffs], Sun Mar 17 01:06:18 1996 UTC (26 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.6: +15 -10 lines
Diff to previous 1.6 (colored)

New device attachment scheme:

	- split softc size and match/attach out from cfdriver into
	  a new struct cfattach.

	- new "attach" directive for files.*.  May specify the name of
	  the cfattach structure, so that devices may be easily attached
	  to parents with different autoconfiguration semantics.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Dec 20 00:38:53 1995 UTC (27 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.5: +20 -29 lines
Diff to previous 1.5 (colored)

deal with renaming of asic to ioasic, and other new-tc-config changes

Revision 1.5 / (download) - annotate - [select for diffs], Thu Nov 23 02:33:41 1995 UTC (27 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.4: +41 -59 lines
Diff to previous 1.4 (colored)

wholesale update from my NetBSD/Alpha source tree.  Includes:
	Support for AXPpci CPUs,
	Support for AlphaStation 600 CPUs,
	new boot block structure, which requires an 'installboot'
	    program and works a lot like the NetBSD/sparc boot blocks.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Aug 3 00:53:34 1995 UTC (27 years, 6 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

resettodr returns void

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 28 02:44:51 1995 UTC (27 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.2: +129 -92 lines
Diff to previous 1.2 (colored)

sync with my current Alpha sources

Revision 1.2 / (download) - annotate - [select for diffs], Fri Mar 3 01:35:21 1995 UTC (27 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.1: +13 -5 lines
Diff to previous 1.1 (colored)

add support for more clock frequencies; use 1024 Hz.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Feb 13 23:06:50 1995 UTC (27 years, 11 months ago) by cgd
Branch: MAIN

preliminary Alpha support.  note that NOT ALL OF THE MODIFICATIONS TO
THE REST OF THE KERNEL ARE IN THE TREE YET.  Also, some of this is
_incredibly_ hack-ish, etc., but it works.

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>