driver model: introduce device_sem to protect global device list instead of device_lock.
- device_sem is added to make the global list walks easier (for power mgmt and shutdown), so they don't have to take and drop device_lock a lot. - Change list modifications to take device_sem instead of device_lock. - Ditto for device refcount modifications. - Kill get_device_locked(), as all the users are now gone.
Showing
Please register or sign in to comment