Bring back pci_dopm, but disable it before powerdown.
authorpirofti <pirofti@openbsd.org>
Sat, 19 Jul 2014 18:01:23 +0000 (18:01 +0000)
committerpirofti <pirofti@openbsd.org>
Sat, 19 Jul 2014 18:01:23 +0000 (18:01 +0000)
commitc16e7cd67527e91a2203104c6e45762b1ee5f197
tree62e019e2598c0fad7db636ca28e26f968280c98b
parente7bb830cef03ec73f803c001892d63cd39ad7cde
Bring back pci_dopm, but disable it before powerdown.

This fixes both the Lemote reboot issue and the USB issue on the
Gdium's that miod@ spotted.

Suggested by kettenis@, thanks!

Okay miod@
sys/arch/loongson/dev/apm.c
sys/arch/loongson/loongson/machdep.c