summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpihpet.c
diff options
context:
space:
mode:
authorPaul Irofti <pirofti@cvs.openbsd.org>2009-11-23 01:33:09 +0000
committerPaul Irofti <pirofti@cvs.openbsd.org>2009-11-23 01:33:09 +0000
commitd35f3535dd91e047e8d26d34438cc4e0a6b1666d (patch)
tree16169bb42088aa668322c33c05e9463783538d7e /sys/dev/acpi/acpihpet.c
parenta25a111db6a5fdbc1444fb27ec537c4393c713d7 (diff)
Fix pckbd and acpihpet suspend/resume cases to fit with the future framework
that's going to get in really soon. Okay mlarkin@, deraadt@.
Diffstat (limited to 'sys/dev/acpi/acpihpet.c')
-rw-r--r--sys/dev/acpi/acpihpet.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/dev/acpi/acpihpet.c b/sys/dev/acpi/acpihpet.c
index ff34331ddec..29c167471b3 100644
--- a/sys/dev/acpi/acpihpet.c
+++ b/sys/dev/acpi/acpihpet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpihpet.c,v 1.9 2009/10/13 19:33:16 pirofti Exp $ */
+/* $OpenBSD: acpihpet.c,v 1.10 2009/11/23 01:33:08 pirofti Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
@@ -71,12 +71,9 @@ acpihpet_activate(struct device *self, int act)
struct acpihpet_softc *sc = (struct acpihpet_softc *) self;
switch(act) {
- case DVACT_ACTIVATE:
- if (!cold)
- bus_space_write_4(sc->sc_iot, sc->sc_ioh,
- HPET_CONFIGURATION, 1);
- break;
- case DVACT_DEACTIVATE:
+ case DVACT_RESUME:
+ bus_space_write_4(sc->sc_iot, sc->sc_ioh,
+ HPET_CONFIGURATION, 1);
break;
}