summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_hibernate.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2013-11-06 10:40:36 +0000
committermpi <mpi@openbsd.org>2013-11-06 10:40:36 +0000
commitb08441ed8c8612b2835f906a7ee162aa1a5fa4f2 (patch)
tree1fc0226b705d7cc67733f6e60d4b29351b2aa1d2 /sys/kern/subr_hibernate.c
parentfix format string (diff)
downloadwireguard-openbsd-b08441ed8c8612b2835f906a7ee162aa1a5fa4f2.tar.xz
wireguard-openbsd-b08441ed8c8612b2835f906a7ee162aa1a5fa4f2.zip
Add support for Power Resources for Dx states and the necessary hook
for PCI devices. This hook should be called twice, before and after changing the power state of a PCI device. Before setting the device to the new state, the ACPI layer will notify every power resources linked to the device for that state and make sure they are turned "_ON". After changing the state of the device, it will decrement the reference of every power resources linked to that device for the old state and turn them "_OFF" if they are no longer referenced. This fixes the no-USB after resume problem seen on various ThinkPad, problem initialy diagnosed with Alexander Polakov. ok kettenis@, deraadt@
Diffstat (limited to 'sys/kern/subr_hibernate.c')
0 files changed, 0 insertions, 0 deletions