Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/acpica/acpi_timer.c
Show All 12 Lines | |||||
if (error == 0 && req->newptr != NULL) { | if (error == 0 && req->newptr != NULL) { | ||||
acpi_timer_frequency = freq; | acpi_timer_frequency = freq; | ||||
acpi_timer_timecounter.tc_frequency = acpi_timer_frequency; | acpi_timer_timecounter.tc_frequency = acpi_timer_frequency; | ||||
} | } | ||||
return (error); | return (error); | ||||
} | } | ||||
SYSCTL_PROC(_machdep, OID_AUTO, acpi_timer_freq, CTLTYPE_INT | CTLFLAG_RW, | SYSCTL_PROC(_machdep, OID_AUTO, acpi_timer_freq, | ||||
0, sizeof(u_int), acpi_timer_sysctl_freq, "I", "ACPI timer frequency"); | CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, | ||||
0, sizeof(u_int), acpi_timer_sysctl_freq, "I", | |||||
"ACPI timer frequency"); | |||||
/* | /* | ||||
* Some ACPI timers are known or believed to suffer from implementation | * Some ACPI timers are known or believed to suffer from implementation | ||||
* problems which can lead to erroneous values being read. This function | * problems which can lead to erroneous values being read. This function | ||||
* tests for consistent results from the timer and returns 1 if it believes | * tests for consistent results from the timer and returns 1 if it believes | ||||
* the timer is consistent, otherwise it returns 0. | * the timer is consistent, otherwise it returns 0. | ||||
* | * | ||||
* It appears the cause is that the counter is not latched to the PCI bus | * It appears the cause is that the counter is not latched to the PCI bus | ||||
Show All 12 Lines |