acpi_timer.c (220369) | acpi_timer.c (220613) |
---|---|
1/*- 2 * Copyright (c) 2000, 2001 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000, 2001 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_timer.c 220369 2011-04-05 18:40:19Z jkim $"); | 29__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_timer.c 220613 2011-04-14 00:07:08Z jkim $"); |
30 31#include "opt_acpi.h" 32#include <sys/param.h> 33#include <sys/bus.h> 34#include <sys/kernel.h> 35#include <sys/module.h> 36#include <sys/sysctl.h> 37#include <sys/timetc.h> --- 233 unchanged lines hidden (view full) --- 271 acpi_timer_frequency = freq; 272 acpi_timer_timecounter.tc_frequency = acpi_timer_frequency; 273 } 274 275 return (error); 276} 277 278SYSCTL_PROC(_machdep, OID_AUTO, acpi_timer_freq, CTLTYPE_INT | CTLFLAG_RW, | 30 31#include "opt_acpi.h" 32#include <sys/param.h> 33#include <sys/bus.h> 34#include <sys/kernel.h> 35#include <sys/module.h> 36#include <sys/sysctl.h> 37#include <sys/timetc.h> --- 233 unchanged lines hidden (view full) --- 271 acpi_timer_frequency = freq; 272 acpi_timer_timecounter.tc_frequency = acpi_timer_frequency; 273 } 274 275 return (error); 276} 277 278SYSCTL_PROC(_machdep, OID_AUTO, acpi_timer_freq, CTLTYPE_INT | CTLFLAG_RW, |
279 0, sizeof(u_int), acpi_timer_sysctl_freq, "I", ""); | 279 0, sizeof(u_int), acpi_timer_sysctl_freq, "I", "ACPI timer frequency"); |
280 281/* 282 * Some ACPI timers are known or believed to suffer from implementation 283 * problems which can lead to erroneous values being read. This function 284 * tests for consistent results from the timer and returns 1 if it believes 285 * the timer is consistent, otherwise it returns 0. 286 * 287 * It appears the cause is that the counter is not latched to the PCI bus --- 89 unchanged lines hidden --- | 280 281/* 282 * Some ACPI timers are known or believed to suffer from implementation 283 * problems which can lead to erroneous values being read. This function 284 * tests for consistent results from the timer and returns 1 if it believes 285 * the timer is consistent, otherwise it returns 0. 286 * 287 * It appears the cause is that the counter is not latched to the PCI bus --- 89 unchanged lines hidden --- |