CVSROOT: /cvs Module name: src Changes by: m...@cvs.openbsd.org 2014/03/31 06:11:42
Modified files: sys/dev/acpi : acpi.c sys/arch/i386/i386: apm.c sys/arch/zaurus/dev: zaurus_apm.c sys/arch/loongson/dev: apm.c Log message: Change the order of operations during a suspend/resume cycle and call bufq_quiesce() after executing the DVACT_QUIESCE handlers. This should be safe since no disk nor controller drivers have such handler but it will allow us to detach sd(4) devices attached to a USB bus. Another benefit pointed out by kettenis@ is that drivers that need to read a firmware from the disk should be able to do it at resume time in a DVACT_WAKEUP handler. ok kettenis@, deraadt@