git: 3fdf11fe8fb0 - main - acpi_timer: remove leftovers from Garbage-collect ACPI-safe timer and friends
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 21 Jun 2024 12:07:33 UTC
The branch main has been updated by bapt:
URL: https://cgit.FreeBSD.org/src/commit/?id=3fdf11fe8fb0a532cc8eafc92b7b12ca40acc221
commit 3fdf11fe8fb0a532cc8eafc92b7b12ca40acc221
Author: Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2024-06-21 07:57:10 +0000
Commit: Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2024-06-21 12:06:26 +0000
acpi_timer: remove leftovers from Garbage-collect ACPI-safe timer and friends
Reviewed by: cperciva
Differential Revision: https://reviews.freebsd.org/D45669
---
sys/dev/acpica/acpi_timer.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/sys/dev/acpica/acpi_timer.c b/sys/dev/acpica/acpi_timer.c
index 49474f71dfcb..3d51a4211b80 100644
--- a/sys/dev/acpica/acpi_timer.c
+++ b/sys/dev/acpica/acpi_timer.c
@@ -154,7 +154,7 @@ acpi_timer_identify(driver_t *driver, device_t parent)
static int
acpi_timer_probe(device_t dev)
{
- int j, rid, rtype;
+ int rid, rtype;
ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);
@@ -188,16 +188,6 @@ acpi_timer_probe(device_t dev)
acpi_timer_timecounter.tc_frequency = acpi_timer_frequency;
acpi_timer_timecounter.tc_flags = TC_FLAGS_SUSPEND_SAFE;
- /*
- * If all tests of the counter succeed, use the ACPI-fast method. If
- * at least one failed, default to using the safe routine, which reads
- * the timer multiple times to get a consistent value before returning.
- */
- j = 0;
- if (bootverbose)
- printf("ACPI timer:");
- if (bootverbose)
- printf(" -> %d\n", j);
acpi_timer_timecounter.tc_name = "ACPI-fast";
acpi_timer_timecounter.tc_get_timecount = acpi_timer_get_timecount;
acpi_timer_timecounter.tc_quality = 900;