From: Alan Stern Date: Mon, 29 Jun 2009 15:00:01 +0000 (-0400) Subject: USB: make intf.pm_usage an atomic_t X-Git-Tag: v2.6.32-rc1~174^2~103 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccf5b801cef4f9e2d708d3b87e91e2bc6abd5206;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed