summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-08-16 08:23:53 +0000
committerphk <phk@FreeBSD.org>2003-08-16 08:23:53 +0000
commit34014d52616ca61b0b5cf0a932b010bfadd29dba (patch)
tree1ba852aeb06396d333d240e0c07a660ad77cea18 /sys/dev/acpica
parente40caa9ae772a64d31f35f65258dec9f48d8a539 (diff)
downloadFreeBSD-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/dev/acpica')
-rw-r--r--sys/dev/acpica/acpi_timer.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/dev/acpica/acpi_timer.c b/sys/dev/acpica/acpi_timer.c
index 67e308a..576ce59 100644
--- a/sys/dev/acpica/acpi_timer.c
+++ b/sys/dev/acpica/acpi_timer.c
@@ -98,11 +98,12 @@ DRIVER_MODULE(acpi_timer, acpi, acpi_timer_driver, acpi_timer_devclass, 0, 0);
* Timecounter.
*/
static struct timecounter acpi_timer_timecounter = {
- acpi_timer_get_timecount_safe,
- 0,
- 0xffffff,
- 0,
- "ACPI"
+ acpi_timer_get_timecount_safe,
+ 0,
+ 0xffffff,
+ 0,
+ "ACPI",
+ 1000
};
OpenPOWER on IntegriCloud