freebsd-dev/sys/amd64/isa
Bruce Evans a3b33372b9 Maintain a new variable `timer0_overflow_threshold' so that microtime()
doesn't have to calculate it every call.

Rename `timer0_prescale' to `timer0_prescaler_count' and maintain it
correctly.  Previously we lost a few 8253 cycles for every "prescaled"
clock interrupt, and the lossage grows rapidly at 16 KHz.  Now we
only lose a few cycles for every standard clock interrupt.

Rename `*_divisor' to `*_max_count'.

Do the calculation of TIMER_DIV(rate) only once instead of 3 times each
time the rate is changed.

Don't allow preposterously large interrupt rates.  Bug fixes elsewhere
should allow the system to survive rates that saturate the system, however.

Clean up declarations.

Include <machine/clock.h> to check our own declarations.
1994-11-05 23:55:07 +00:00
..
clock.c Maintain a new variable `timer0_overflow_threshold' so that microtime() 1994-11-05 23:55:07 +00:00
icu.h Laptop Advanced Power Management support by HOSOKAWA Tatsumi. 1994-10-01 02:56:21 +00:00
isa.c Add extra id_enabled flag for userconfig to manipulate. If id_enabled 1994-11-03 04:15:04 +00:00
isa.h Laptop Advanced Power Management support by HOSOKAWA Tatsumi. 1994-10-01 02:56:21 +00:00
npx.c Finished device configuration database work for all ISA devices (except `ze') 1994-10-23 21:28:03 +00:00
timerreg.h Removed all patch kit headers, sccsid and rcsid strings, put $Id$ in, some 1993-10-16 13:48:52 +00:00
vector.s Fix a very old, very stupid race clearing the mask bit for the current 1994-11-01 23:29:50 +00:00
vector.S Fix a very old, very stupid race clearing the mask bit for the current 1994-11-01 23:29:50 +00:00