From 5a5fd46c883b59820d7ac2c957aa3c8ff4eb47e1 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 27 Jul 2010 22:57:49 +0000 Subject: XXX annotate a block in acpi_enter_sleep_state() that is pretty worrying --- sys/dev/acpi/acpi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/dev/acpi') diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 6ca0ca7dd76..8ab59ebdcf9 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.192 2010/07/27 22:11:44 deraadt Exp $ */ +/* $OpenBSD: acpi.c,v 1.193 2010/07/27 22:57:48 deraadt Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert * Copyright (c) 2005 Jordan Hargrave @@ -1716,6 +1716,9 @@ acpi_enter_sleep_state(struct acpi_softc *sc, int state) */ acpi_cpu_flush(sc, state); + /* + * XXX The following sequence is probably not right. + */ acpi_write_pmreg(sc, ACPIREG_PM1A_CNT, 0, rega); acpi_write_pmreg(sc, ACPIREG_PM1B_CNT, 0, regb); -- cgit v1.2.3