summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2002-10-16 21:22:36 -0700
committerPatrick Mochel <mochel@osdl.org>2002-10-16 21:22:36 -0700
commit6b1febf70889295545f50cc0d05312eaf6daa0a2 (patch)
tree8c6a3b2144c448c1ea95350bdb06779f31d43572 /include/linux
parent1e510b8fed8c72356c8915a7b0450a4d5271f170 (diff)
driver model: power management/shutdown cleanup.
- take device_sem around all global list walks. - don't modify refcount, as get_device()/put_device() also take device_sem - But, make sure we check device_present() to make sure device is still around. (Note device removal will block until device_sem is dropped, so list will remain intact.) - Separate out device_shutdown() walk from device_suspend() walk. Even though the code is nearly identical, it's a lot clearer as to what is going on when they are autonomous. It was my bad for originally putting that FIXME in there, encouraging the consolidation. - Add debugging hooks for my convenience. :) - Call ->shutdown() when shutting down device, instead of ->remove(). (See ChangeSet 1.799 for description and semantics).
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions