diff options
author | phk <phk@FreeBSD.org> | 2003-08-16 08:23:53 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-08-16 08:23:53 +0000 |
commit | 34014d52616ca61b0b5cf0a932b010bfadd29dba (patch) | |
tree | 1ba852aeb06396d333d240e0c07a660ad77cea18 /sys/isa/atrtc.c | |
parent | e40caa9ae772a64d31f35f65258dec9f48d8a539 (diff) | |
download | FreeBSD-src-34014d52616ca61b0b5cf0a932b010bfadd29dba.zip FreeBSD-src-34014d52616ca61b0b5cf0a932b010bfadd29dba.tar.gz |
Give timecounters a numeric quality field.
A timecounter will be selected when registered if its quality is
not negative and no less than the current timecounters.
Add a sysctl to report all available timecounters and their qualities.
Give the dummy timecounter a solid negative quality of minus a million.
Give the i8254 zero and the ACPI 1000.
The TSC gets 800, unless APM or SMP forces it negative.
Other timecounters default to zero quality and thereby retain current
selection behaviour.
Diffstat (limited to 'sys/isa/atrtc.c')
-rw-r--r-- | sys/isa/atrtc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c index 3c9c915..3d7d8c1 100644 --- a/sys/isa/atrtc.c +++ b/sys/isa/atrtc.c @@ -155,7 +155,8 @@ static struct timecounter i8254_timecounter = { 0, /* no poll_pps */ ~0u, /* counter_mask */ 0, /* frequency */ - "i8254" /* name */ + "i8254", /* name */ + 0 /* quality */ }; static void |