diff options
author | Nikolay Sturm <sturm@cvs.openbsd.org> | 2005-12-18 15:53:01 +0000 |
---|---|---|
committer | Nikolay Sturm <sturm@cvs.openbsd.org> | 2005-12-18 15:53:01 +0000 |
commit | 0de5289363a17c5855b954ac355d8569a48d3f09 (patch) | |
tree | 208c43d82eb22e8812dd25661893c161304b2911 /sys/dev/acpi | |
parent | c0aa54c9b441f7548fa6ba79a87594b2168fd120 (diff) |
add back comment about wrong code
ok marco
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r-- | sys/dev/acpi/acpi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 76c22fded96..967001e47e1 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.11 2005/12/16 19:09:31 marco Exp $ */ +/* $OpenBSD: acpi.c,v 1.12 2005/12/18 15:53:00 sturm Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * @@ -753,6 +753,7 @@ acpi_enter_sleep_state(struct acpi_softc *sc, int state) u_int16_t flag; flag = acpi_read_pmreg(sc, ACPIREG_PM1_CNT); + /* XXX This is sick and wrong and illegal! */ acpi_write_pmreg(sc, ACPIREG_PM1_CNT, flag |= (state << 10)); acpi_write_pmreg(sc, ACPIREG_PM1_CNT, flag |= ACPI_PM1_SLP_EN); #endif |