summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1994-11-05 23:55:07 +0000
committerbde <bde@FreeBSD.org>1994-11-05 23:55:07 +0000
commitab56297580bc300c28ef4a8d0bed44c6ee9e5897 (patch)
treea8cdcfc1bb83aba50a99b8bbb30274d25bf79337 /sbin
parent8091426ac6109ddd5326adc63bfafd8cca542b66 (diff)
downloadFreeBSD-src-ab56297580bc300c28ef4a8d0bed44c6ee9e5897.zip
FreeBSD-src-ab56297580bc300c28ef4a8d0bed44c6ee9e5897.tar.gz
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.
Diffstat (limited to 'sbin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud