freebsd-dev/sys
Marcel Moolenaar 46e31b2612 Cleanup the clock code. This includes:
o  Remove alpha specific timer code (mc146818A) and compiled-out
   calibration of said timer.
o  Remove i386 inherited timer code (i8253) and related acquire and
   release functions.
o  Move sysbeep() from clock.c to machdep.c and have it return
   ENODEV. Console beeps should be implemented using ACPI or if no
   such device is described, using the sound driver.
o  Move the sysctls related to adjkerntz, disable_rtc_set and
   wall_cmos_clock from machdep.c to clock.c, where the variables
   are.
o  Don't hardcode a hz value of 1024 in cpu_initclocks() and don't
   bother faking a stathz that's 1/8 of that. Keep it simple: hz
   defaults to HZ and stathz equals hz. This is also how it's done
   for sparc64.
o  Keep a per-CPU ITC counter (pc_clock) and adjustment (pc_clockadj)
   to calculate ITC skew and corrections. On average, we adjust the
   ITC match register once every ~1500 interrupts for a duration of
   2 consequtive interruprs. This is to correct the non-deterministic
   behaviour of the ITC interrupt (there's a delay between the match
   and the raising of the interrupt).
o  Add 4 debugging sysctls to monitor clock behaviour. Those are
   debug.clock_adjust_edges, debug.clock_adjust_excess,
   debug.clock_adjust_lost and debug.clock_adjust_ticks. The first
   counts the individual adjustment cycles (when the skew first
   crosses the threshold), the second counts the number of times the
   adjustment was excessive (any non-zero value is to be considered
   a bug), the third counts lost clock interrupts and the last counts
   the number of interrupts for which we applied an adjustment
   (debug.clock_adjust_ticks / debug.clock_adjust_edges gives the
   avarage duration of an individual adjustment -- should be ~2).

While here, remove some nearby (trivial) left-overs from alpha and
other cleanups.
2003-08-04 05:13:18 +00:00
..
alpha Style sync. 2003-08-03 07:50:19 +00:00
amd64 Use kmem_alloc_nofault() rather than kmem_alloc_pageable() in pmap_mapdev(). 2003-08-02 19:26:09 +00:00
arm Style sync. 2003-08-03 07:50:19 +00:00
boot Don't hardcode unit 0 for the current device if we're loaded from an 2003-08-02 08:22:03 +00:00
cam Fix the new DA_OLD_QUIRKS option for normal and module compiles. 2003-07-29 18:08:16 +00:00
coda Add a "int fd" argument to VOP_OPEN() which in the future will 2003-07-26 07:32:23 +00:00
compat Try to make 'uname -a' look more like it does on Linux: 2003-07-29 10:03:15 +00:00
conf fix disordering of filenames. Place the dev/ppc files in alphabetical 2003-08-04 02:39:14 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r118339, 2003-08-02 05:48:03 +00:00
crypto Use __FBSDID(). 2003-06-10 21:44:29 +00:00
ddb Update the 'ps', 'show pci', and 'show ktr' ddb commands to use the new 2003-07-31 17:29:42 +00:00
dev Use the revision ID from PCI configuration space to identify Intel 2003-08-04 00:17:16 +00:00
fs Add a "int fd" argument to VOP_OPEN() which in the future will 2003-07-26 07:32:23 +00:00
geom Kick Giant compatibility one layer up. 2003-08-02 10:11:58 +00:00
gnu Add a "int fd" argument to VOP_OPEN() which in the future will 2003-07-26 07:32:23 +00:00
i4b Undo agressive inlining which GCC previously wisely ignored. 2003-07-23 17:58:41 +00:00
i386 Style sync. 2003-08-03 07:50:19 +00:00
ia64 Cleanup the clock code. This includes: 2003-08-04 05:13:18 +00:00
isa Add printer support to puc(4) driver. 2003-08-01 02:25:32 +00:00
isofs/cd9660 Add a "int fd" argument to VOP_OPEN() which in the future will 2003-07-26 07:32:23 +00:00
kern Move more ACL logic from the UFS code (ufs_acl.c) to the central POSIX.1e 2003-08-04 02:13:05 +00:00
libkern Backed out the micro-optimization in 1.4. It was to help gcc-2.6.3 2003-07-25 15:54:23 +00:00
modules There's already the elink.ko module available, don't embed it here. 2003-08-02 18:46:02 +00:00
net Implement a mechanism by which ATM drivers can inform interested 2003-07-29 13:04:52 +00:00
net80211 add monitor mode 2003-07-21 02:49:42 +00:00
netatalk - Use if_broadcastaddr from struct ifnet rather than relying on 2003-03-21 17:53:16 +00:00
netatm The number of prefixes can never be negative so use an u_int for this. 2003-07-29 13:46:43 +00:00
netgraph Process events from the ATM drivers. Carrier change and PVC change 2003-07-29 16:27:23 +00:00
netinet o Fix a typo in previous commit. 2003-07-31 10:24:36 +00:00
netinet6 Cleanup useless break. 2003-07-29 14:10:13 +00:00
netipsec consolidate callback optimization check in one location by adding a flag 2003-06-30 05:09:32 +00:00
netipx Use __FBSDID(). 2003-06-11 05:37:42 +00:00
netkey Use __FBSDID(). 2003-06-11 05:37:42 +00:00
netnatm Instead of returning an error call the ioctl() handler of the interface 2003-07-15 15:51:50 +00:00
netncp size_t != int. Make this compile on 64 bit platforms (eg: amd64). 2003-07-24 01:59:18 +00:00
netsmb Reserve space for the trailing null byte in the srvname member of 2003-07-27 11:36:00 +00:00
nfs Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
nfsclient Fix a problem that occurs when truncating files on NFSv3 mounts: we need 2003-07-29 00:17:29 +00:00
nfsserver Change idle state sleep identifier to "-" for nfsd. 2003-07-02 08:08:32 +00:00
opencrypto consolidate callback optimization check in one location by adding a flag 2003-06-30 05:09:32 +00:00
pc98 Merged from sys/dev/sio/sio.c revision 1.400. 2003-08-02 09:41:31 +00:00
pccard Add comment point o2micro people to NEWCARD 2003-08-01 16:10:48 +00:00
pci Use the BUS_DMA_ZERO flag. 2003-07-27 14:38:54 +00:00
posix4 Use __FBSDID(). 2003-06-11 06:34:30 +00:00
powerpc Deal with GCC annoyingly defining _BIG_ENDIAN. 2003-08-03 07:53:50 +00:00
rpc
security Attempt to simplify #ifdef logic for MAC_ALWAYS_LABEL_MBUF. 2003-08-01 15:45:14 +00:00
sparc64 Deal with 'options KSTACK_PAGES' being a global option. 2003-07-31 01:31:32 +00:00
sys Move more ACL logic from the UFS code (ufs_acl.c) to the central POSIX.1e 2003-08-04 02:13:05 +00:00
tools Don't check the state of the vnode interlock if the specification says 2003-06-22 21:20:06 +00:00
ufs Now that the central POSIX.1e ACL code implements functions to 2003-08-04 03:29:13 +00:00
vm Use kmem_alloc_nofault() instead of kmem_alloc_pageable() to allocate 2003-08-04 04:35:04 +00:00
Makefile Revert exclusion for amd64 that stopped boot/ being built. 2003-06-26 03:52:48 +00:00