diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2007-10-11 22:47:36 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-10-12 23:55:35 +0200 |
commit | d1aa3e6aa8edfeb864af7c930523d9e588b28bea (patch) | |
tree | 1ad0e6ead73cccc43dd1c1997aabb25acb4970d2 /lib/kobject.c | |
parent | atmel_usba_udc: Keep track of the device status (diff) | |
download | linux-d1aa3e6aa8edfeb864af7c930523d9e588b28bea.tar.xz linux-d1aa3e6aa8edfeb864af7c930523d9e588b28bea.zip |
USB: fix race in autosuspend reschedule
This patch (as1002) fixes a small race which can occur when a driver
expects usbcore to reschedule an autosuspend request. If the request
arrives too late, it won't be rescheduled. The patch adds an extra
argument to autosuspend_check(), indicating that a reschedule is
needed no matter how much time has elapsed.
It also tries to avoid letting asynchronous changes to the value of
jiffies cause a delay to become negative, by caching a local copy of
the current time.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/kobject.c')
0 files changed, 0 insertions, 0 deletions