freebsd-dev/sys
Bruce Evans 2dafbfcbab Added calibration the i8254 and the i586 clocks agains the RTC at boot
time.  The results are currently ignored unless certain temporary options
are used.

Added sysctls to support reading and writing the clock frequency variables
(not the frequencies themselves).  Writing is supposed to atomically
adjust all related variables.

machdep.c:
Fixed spelling of a function name in a comment so that I can log this
message which should have been with the previous commit.

Initialize `cpu_class' earlier so that it can be used in startrtclock()
instead of in calibrate_cyclecounter() (which no longer exists).

Removed range checking of `cpu'.  It is always initialized to CPU_XXX
so it is less likely to be out of bounds than most variables.

clock.h:
Removed I586_CYCLECTR().  Use rdtsc() instead.

clock.c:
TIMER_FREQ is now a variable timer_freq that defaults to the old value of
TIMER_FREQ.  #define'ing TIMER_FREQ should still work and may be the best
way of setting the frequency.

Calibration involves counting cycles while watching the RTC for one second.
This gives values correct to within (a few ppm) + (the innaccuracy of the
RTC) on my systems.
1996-05-01 08:39:02 +00:00
..
alpha Include <sys/buf.h> so that this does't blow up with B_WRITE undefined. 1996-05-01 06:31:18 +00:00
amd64 Added calibration the i8254 and the i586 clocks agains the RTC at boot 1996-05-01 08:39:02 +00:00
compat/linux Removed never-used #includes of <machine/cpu.h>. Many were apparently 1996-04-07 17:39:28 +00:00
compile
conf Oops, restored existent option LINUX. It is used at config-time. 1996-05-01 05:04:38 +00:00
ddb For Lite2: proc LIST changes. 1996-03-11 05:55:56 +00:00
dev Fixed a race that caused panics in kernel printfs when the screen timeout 1996-05-01 03:58:21 +00:00
fs Fix adjkerntz expression priority. 1996-04-05 18:59:06 +00:00
geom Add missing "int" to static var. 1996-04-24 09:42:22 +00:00
gnu Removed bogus _BEGIN_DECLS/_END_DECLS. 1996-05-01 02:16:17 +00:00
i386 Added calibration the i8254 and the i586 clocks agains the RTC at boot 1996-05-01 08:39:02 +00:00
isa Added calibration the i8254 and the i586 clocks agains the RTC at boot 1996-05-01 08:39:02 +00:00
isofs/cd9660 Provide a better handling of partially corrupted directory entries. 1996-03-14 21:44:32 +00:00
kern Removed unused #include. 1996-05-01 03:32:46 +00:00
libkern Don't include <sys/types.h> when it isn't used. 1996-04-19 18:40:25 +00:00
miscfs Fix the reproto.sh script that was broken after my KNFification. 1996-04-07 01:15:03 +00:00
modules Add in qcam module (forgot) 1996-03-24 00:30:38 +00:00
msdosfs Fix adjkerntz expression priority. 1996-04-05 18:59:06 +00:00
net Regardless of whether or not the check for IPv4 is useful, we certainly 1996-04-25 02:34:37 +00:00
netinet inet_ntoa buffer was evaluated twice in log_in_vain, fix it. 1996-04-27 18:19:12 +00:00
netipx Don't use a newfangled auto initializer. Initialize everything by 1996-04-13 14:37:22 +00:00
netns finish killing off netns. (For some reason, CVS `undeleted' these 1996-02-13 18:19:17 +00:00
nfs #include <sys/filedesc.h> explicitly instead of depending on it being 1996-04-30 23:26:52 +00:00
nfsclient #include <sys/filedesc.h> explicitly instead of depending on it being 1996-04-30 23:26:52 +00:00
nfsserver #include <sys/filedesc.h> explicitly instead of depending on it being 1996-04-30 23:26:52 +00:00
pc98/pc98 Eliminated sloppy common-style declarations. Now there are no duplicated 1996-04-13 12:45:57 +00:00
pccard Adds the APM hooks into the generic pccard kernel files. With this code 1996-04-23 16:03:08 +00:00
pci Fix logic bug in pci bridge code. For a PCI-PCI bridge, secondary 1996-04-25 06:04:27 +00:00
powerpc/include Add commands for ptrace get/set registers.. (Same numbers as NetBSD) 1996-01-24 18:51:48 +00:00
rpc Fix a bunch of spelling errors in the comment fields 1996-01-30 23:33:04 +00:00
scsi Don't depend on <sys/types.h> including <sys/cdefs.h>. 1996-04-19 17:39:57 +00:00
sys Made this self-sufficent (except for <sys/types.h>) when compiled in 1996-05-01 04:18:20 +00:00
tools Another mega commit to staticize things. 1995-12-14 09:55:16 +00:00
ufs Removed bogus _BEGIN_DECLS/_END_DECLS. 1996-05-01 02:16:17 +00:00
vm Move the map entry allocations from the kmem_map to the kernel_map. As 1996-04-29 22:04:57 +00:00
Makefile Removed almost all traces of libkern.a. The objects that were in 1995-12-26 13:58:31 +00:00