freebsd_amp_hwpstate/sys/amd64
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
..
amd64 Maintain a new variable `timer0_overflow_threshold' so that microtime() 1994-11-05 23:55:07 +00:00
conf Argh! Missing quotes. 1994-11-05 07:41:08 +00:00
include Declare all functions exported by the npx driver. 1994-11-05 22:59:09 +00:00
isa Maintain a new variable `timer0_overflow_threshold' so that microtime() 1994-11-05 23:55:07 +00:00
Makefile Removed all patch kit headers, sccsid and rcsid strings, put $Id$ in, some 1993-10-16 19:17:18 +00:00