From 34014d52616ca61b0b5cf0a932b010bfadd29dba Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 16 Aug 2003 08:23:53 +0000 Subject: 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. --- sys/dev/acpica/acpi_timer.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'sys/dev/acpica') 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 }; -- cgit v1.1