From: Alan Stern Date: Thu, 11 Oct 2007 20:47:36 +0000 (-0400) Subject: USB: fix race in autosuspend reschedule X-Git-Tag: v2.6.24-rc1~1395^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1aa3e6aa8edfeb864af7c930523d9e588b28bea;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed