diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2010-08-03 16:32:41 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2010-08-03 16:32:41 +0000 |
commit | ea7de5d651320b6c9fff1f9b26f41c8829c87ede (patch) | |
tree | e354e4407d4ad9f223c6accf17d923a5bb05d66f /sys/dev/acpi | |
parent | f71c9d07ec301a03352ebdd409379264081731a3 (diff) |
Use the proper flag for re-enabling certain hardware events (power btn,
sleep btn). The (incorrect) flag prevoiously used coincidentally had the
same value, so this shouldn't cause any different behavior than before.
tested on a variety of machines (i386, amd64, sp, mp) - no behavioral
change seen
ok deraadt@
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r-- | sys/dev/acpi/acpi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index fd4170da15d..777840231ce 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.197 2010/07/28 14:39:43 marco Exp $ */ +/* $OpenBSD: acpi.c,v 1.198 2010/08/03 16:32:40 mlarkin Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> @@ -2036,7 +2036,7 @@ acpi_thread(void *arg) s = spltty(); en = acpi_read_pmreg(sc, ACPIREG_PM1_EN, 0); acpi_write_pmreg(sc, ACPIREG_PM1_EN, 0, - en | ACPI_PM1_PWRBTN_STS); + en | ACPI_PM1_PWRBTN_EN); splx(s); } @@ -2051,7 +2051,7 @@ acpi_thread(void *arg) s = spltty(); en = acpi_read_pmreg(sc, ACPIREG_PM1_EN, 0); acpi_write_pmreg(sc, ACPIREG_PM1_EN, 0, - en | ACPI_PM1_SLPBTN_STS); + en | ACPI_PM1_SLPBTN_EN); splx(s); } |