summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpi/acpitimer.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2012-08-16 18:41:17 +0000
committertedu <tedu@openbsd.org>2012-08-16 18:41:17 +0000
commit97c0407e0ab10f07848440eaab134b7e415e1d2a (patch)
tree219e82e0e65ad620a6a238feaec2ef8854880d28 /sys/dev/acpi/acpitimer.c
parentAdd a test case to verify ld.so's randomdata section is initialized (diff)
downloadwireguard-openbsd-97c0407e0ab10f07848440eaab134b7e415e1d2a.tar.xz
wireguard-openbsd-97c0407e0ab10f07848440eaab134b7e415e1d2a.zip
we are past the point where timecounters may disappear
ok miod
Diffstat (limited to 'sys/dev/acpi/acpitimer.c')
-rw-r--r--sys/dev/acpi/acpitimer.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/dev/acpi/acpitimer.c b/sys/dev/acpi/acpitimer.c
index a9a4b13d08e..11285b54ab3 100644
--- a/sys/dev/acpi/acpitimer.c
+++ b/sys/dev/acpi/acpitimer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpitimer.c,v 1.9 2011/04/22 18:22:01 jordan Exp $ */
+/* $OpenBSD: acpitimer.c,v 1.10 2012/08/16 18:41:17 tedu Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
@@ -19,9 +19,7 @@
#include <sys/systm.h>
#include <sys/device.h>
#include <sys/malloc.h>
-#ifdef __HAVE_TIMECOUNTER
#include <sys/timetc.h>
-#endif
#include <machine/bus.h>
@@ -31,7 +29,6 @@
int acpitimermatch(struct device *, void *, void *);
void acpitimerattach(struct device *, struct device *, void *);
-#ifdef __HAVE_TIMECOUNTER
u_int acpi_get_timecount(struct timecounter *tc);
static struct timecounter acpi_timecounter = {
@@ -42,7 +39,6 @@ static struct timecounter acpi_timecounter = {
0, /* name */
1000 /* quality */
};
-#endif
struct acpitimer_softc {
struct device sc_dev;
@@ -96,17 +92,14 @@ acpitimerattach(struct device *parent, struct device *self, void *aux)
printf(": %d Hz, %d bits\n", ACPI_FREQUENCY,
psc->sc_fadt->flags & FADT_TMR_VAL_EXT ? 32 : 24);
-#ifdef __HAVE_TIMECOUNTER
if (psc->sc_fadt->flags & FADT_TMR_VAL_EXT)
acpi_timecounter.tc_counter_mask = 0xffffffffU;
acpi_timecounter.tc_priv = sc;
acpi_timecounter.tc_name = sc->sc_dev.dv_xname;
tc_init(&acpi_timecounter);
-#endif
}
-#ifdef __HAVE_TIMECOUNTER
u_int
acpi_get_timecount(struct timecounter *tc)
{
@@ -123,4 +116,3 @@ acpi_get_timecount(struct timecounter *tc)
return (u2);
}
-#endif