diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-11-24 16:12:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-11-24 16:12:38 +0000 |
commit | 41f99e259a5b4bc9ba9c3f83aa4429db4797fd27 (patch) | |
tree | 7fecdff71fea16877cec535b6bdc6d02114f4ff0 /sys/dev/acpi | |
parent | b35761230ca0b41d2fb8fb84fa4a2389356da6b0 (diff) |
abort suspends on SMP systems until that gets written; ok mlarkin
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r-- | sys/dev/acpi/acpi.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 211cd3fbf50..7bcc3679743 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.148 2009/11/23 22:34:23 mlarkin Exp $ */ +/* $OpenBSD: acpi.c,v 1.149 2009/11/24 16:12:37 deraadt Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> @@ -1818,6 +1818,10 @@ acpi_sleep_state(struct acpi_softc *sc, int state) { int ret; +#ifdef MULTIPROCESSOR + if (ncpus > 1) /* cannot suspend MP yet */ + return (0); +#endif switch (state) { case ACPI_STATE_S0: return (0); |