Set cold to 1 before executing the DVACT_POWERDOWN handlers when halting or
authormpi <mpi@openbsd.org>
Thu, 10 Jul 2014 21:46:02 +0000 (21:46 +0000)
committermpi <mpi@openbsd.org>
Thu, 10 Jul 2014 21:46:02 +0000 (21:46 +0000)
commit80ce5a38cec6a0894f9384ba47bebaa77ccf772e
tree85af238fe827a56542e8f0a8e539df98f0b92a2c
parenta797acf4bb4e9d6f8c6e2c253b3e60ccb6f98fa5
Set cold to 1 before executing the DVACT_POWERDOWN handlers when halting or
rebooting a machine, like it is done in the hibernate case.

At least some USB host controller drivers rely on this to busy way instead
of sleeping.  Avoid a panic on macppc with an uhci(4) cardbus plugged in.

ok deraadt@, uebayashi@
20 files changed:
sys/arch/alpha/alpha/machdep.c
sys/arch/amd64/amd64/machdep.c
sys/arch/armish/armish/armish_machdep.c
sys/arch/armv7/armv7/armv7_machdep.c
sys/arch/aviion/aviion/machdep.c
sys/arch/hppa/hppa/machdep.c
sys/arch/hppa64/hppa64/machdep.c
sys/arch/i386/i386/machdep.c
sys/arch/landisk/landisk/machdep.c
sys/arch/loongson/loongson/machdep.c
sys/arch/luna88k/luna88k/machdep.c
sys/arch/macppc/macppc/machdep.c
sys/arch/octeon/octeon/machdep.c
sys/arch/sgi/sgi/machdep.c
sys/arch/socppc/socppc/machdep.c
sys/arch/solbourne/solbourne/machdep.c
sys/arch/sparc/sparc/machdep.c
sys/arch/sparc64/sparc64/machdep.c
sys/arch/vax/vax/machdep.c
sys/arch/zaurus/zaurus/zaurus_machdep.c