diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2009-06-29 11:00:01 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-23 06:46:23 -0700 |
commit | ccf5b801cef4f9e2d708d3b87e91e2bc6abd5206 (patch) | |
tree | 1b7de13df336f44f6f74657934e79dc8c0bfd142 /drivers/usb/core/devio.c | |
parent | 7cbe5dca399a50ce8aa74314b1d276e2fb904e1b (diff) | |
download | blackbird-obmc-linux-ccf5b801cef4f9e2d708d3b87e91e2bc6abd5206.tar.gz blackbird-obmc-linux-ccf5b801cef4f9e2d708d3b87e91e2bc6abd5206.zip |
USB: make intf.pm_usage an atomic_t
This patch (as1260) changes the pm_usage_cnt field in struct
usb_interface from an int to an atomic_t. This is so that drivers can
invoke the usb_autopm_get_interface_async() and
usb_autopm_put_interface_async() routines without locking and without
fear of corrupting the pm_usage_cnt value.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/devio.c')
0 files changed, 0 insertions, 0 deletions