diff options
-rw-r--r-- | sys/arch/amd64/amd64/acpi_machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/arm/xscale/pxa2x0_apm.c | 6 | ||||
-rw-r--r-- | sys/arch/i386/i386/acpi_machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/i386/i386/apm.c | 6 | ||||
-rw-r--r-- | sys/arch/loongson/dev/apm.c | 6 | ||||
-rw-r--r-- | sys/arch/zaurus/dev/zaurus_apm.c | 6 |
6 files changed, 30 insertions, 6 deletions
diff --git a/sys/arch/amd64/amd64/acpi_machdep.c b/sys/arch/amd64/amd64/acpi_machdep.c index b255ee05580..99fe248dfcc 100644 --- a/sys/arch/amd64/amd64/acpi_machdep.c +++ b/sys/arch/amd64/amd64/acpi_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi_machdep.c,v 1.50 2012/10/08 21:47:47 deraadt Exp $ */ +/* $OpenBSD: acpi_machdep.c,v 1.51 2012/10/17 22:49:27 deraadt Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * @@ -271,6 +271,10 @@ acpi_sleep_cpu(struct acpi_softc *sc, int state) } #endif + /* XXX + * Flag to disk drivers that they should "power down" the disk + * when we get to DVACT_POWERDOWN. + */ boothowto |= RB_POWERDOWN; config_suspend(TAILQ_FIRST(&alldevs), DVACT_POWERDOWN); boothowto &= ~RB_POWERDOWN; diff --git a/sys/arch/arm/xscale/pxa2x0_apm.c b/sys/arch/arm/xscale/pxa2x0_apm.c index 1807eb2bcde..1bc8e38b4fe 100644 --- a/sys/arch/arm/xscale/pxa2x0_apm.c +++ b/sys/arch/arm/xscale/pxa2x0_apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pxa2x0_apm.c,v 1.38 2012/10/08 21:47:47 deraadt Exp $ */ +/* $OpenBSD: pxa2x0_apm.c,v 1.39 2012/10/17 22:49:27 deraadt Exp $ */ /*- * Copyright (c) 2001 Alexander Guy. All rights reserved. @@ -322,6 +322,10 @@ apm_suspend(struct pxa2x0_apm_softc *sc) s = splhigh(); config_suspend(TAILQ_FIRST(&alldevs), DVACT_SUSPEND); + /* XXX + * Flag to disk drivers that they should "power down" the disk + * when we get to DVACT_POWERDOWN. + */ boothowto |= RB_POWERDOWN; config_suspend(TAILQ_FIRST(&alldevs), DVACT_POWERDOWN); boothowto &= ~RB_POWERDOWN; diff --git a/sys/arch/i386/i386/acpi_machdep.c b/sys/arch/i386/i386/acpi_machdep.c index aaea629c52d..da46d09db66 100644 --- a/sys/arch/i386/i386/acpi_machdep.c +++ b/sys/arch/i386/i386/acpi_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi_machdep.c,v 1.44 2012/10/08 21:47:48 deraadt Exp $ */ +/* $OpenBSD: acpi_machdep.c,v 1.45 2012/10/17 22:49:27 deraadt Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * @@ -296,6 +296,10 @@ acpi_sleep_cpu(struct acpi_softc *sc, int state) } #endif + /* XXX + * Flag to disk drivers that they should "power down" the disk + * when we get to DVACT_POWERDOWN. + */ boothowto |= RB_POWERDOWN; config_suspend(TAILQ_FIRST(&alldevs), DVACT_POWERDOWN); boothowto &= ~RB_POWERDOWN; diff --git a/sys/arch/i386/i386/apm.c b/sys/arch/i386/i386/apm.c index 57f61685a35..1b65ffe489f 100644 --- a/sys/arch/i386/i386/apm.c +++ b/sys/arch/i386/i386/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.99 2012/10/08 21:47:48 deraadt Exp $ */ +/* $OpenBSD: apm.c,v 1.100 2012/10/17 22:49:27 deraadt Exp $ */ /*- * Copyright (c) 1998-2001 Michael Shalayeff. All rights reserved. @@ -255,6 +255,10 @@ apm_suspend(int state) disable_intr(); config_suspend(TAILQ_FIRST(&alldevs), DVACT_SUSPEND); + /* XXX + * Flag to disk drivers that they should "power down" the disk + * when we get to DVACT_POWERDOWN. + */ boothowto |= RB_POWERDOWN; config_suspend(TAILQ_FIRST(&alldevs), DVACT_POWERDOWN); boothowto &= ~RB_POWERDOWN; diff --git a/sys/arch/loongson/dev/apm.c b/sys/arch/loongson/dev/apm.c index bc321492ec9..96484ae5794 100644 --- a/sys/arch/loongson/dev/apm.c +++ b/sys/arch/loongson/dev/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.12 2012/10/08 21:47:48 deraadt Exp $ */ +/* $OpenBSD: apm.c,v 1.13 2012/10/17 22:49:27 deraadt Exp $ */ /*- * Copyright (c) 2001 Alexander Guy. All rights reserved. @@ -371,6 +371,10 @@ apm_suspend() rv = config_suspend(TAILQ_FIRST(&alldevs), DVACT_SUSPEND); + /* XXX + * Flag to disk drivers that they should "power down" the disk + * when we get to DVACT_POWERDOWN. + */ boothowto |= RB_POWERDOWN; (void) config_suspend(TAILQ_FIRST(&alldevs), DVACT_POWERDOWN); boothowto &= ~RB_POWERDOWN; diff --git a/sys/arch/zaurus/dev/zaurus_apm.c b/sys/arch/zaurus/dev/zaurus_apm.c index 7c026d7c513..431aa28a1b2 100644 --- a/sys/arch/zaurus/dev/zaurus_apm.c +++ b/sys/arch/zaurus/dev/zaurus_apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: zaurus_apm.c,v 1.21 2012/10/08 21:47:50 deraadt Exp $ */ +/* $OpenBSD: zaurus_apm.c,v 1.22 2012/10/17 22:49:27 deraadt Exp $ */ /* * Copyright (c) 2005 Uwe Stuehler <uwe@bsdx.de> @@ -655,6 +655,10 @@ zapm_poweroff(void) s = splhigh(); config_suspend(TAILQ_FIRST(&alldevs), DVACT_SUSPEND); + /* XXX + * Flag to disk drivers that they should "power down" the disk + * when we get to DVACT_POWERDOWN. + */ boothowto |= RB_POWERDOWN; config_suspend(TAILQ_FIRST(&alldevs), DVACT_POWERDOWN); boothowto &= ~RB_POWERDOWN; |