diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2007-03-13 16:39:15 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-04-27 16:28:35 -0400 |
commit | eaafbc3a8adab16babe2c20e54ad3ba40d1fbbc9 (patch) | |
tree | fea84341faf742efe8beeaff03ec94b687b7b26f /drivers/usb/core/usb.c | |
parent | 6b157c9bf3bace6eeb4a973da63923ef24995cce (diff) |
USB: Allow autosuspend delay to equal 0
This patch (as867) adds an entry for the new power/autosuspend
attribute in Documentation/ABI/testing, and it changes the behavior of
the delay value. Now a delay of 0 means to autosuspend as soon as
possible, and negative values will prevent autosuspend.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/usb.c')
-rw-r--r-- | drivers/usb/core/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index 138252e0a1cf..6f35dce8a95d 100644 --- a/drivers/usb/core/usb.c +++ b/drivers/usb/core/usb.c | |||
@@ -55,7 +55,7 @@ struct workqueue_struct *ksuspend_usb_wq; | |||
55 | #ifdef CONFIG_USB_SUSPEND | 55 | #ifdef CONFIG_USB_SUSPEND |
56 | static int usb_autosuspend_delay = 2; /* Default delay value, | 56 | static int usb_autosuspend_delay = 2; /* Default delay value, |
57 | * in seconds */ | 57 | * in seconds */ |
58 | module_param_named(autosuspend, usb_autosuspend_delay, uint, 0644); | 58 | module_param_named(autosuspend, usb_autosuspend_delay, int, 0644); |
59 | MODULE_PARM_DESC(autosuspend, "default autosuspend delay"); | 59 | MODULE_PARM_DESC(autosuspend, "default autosuspend delay"); |
60 | 60 | ||
61 | #else | 61 | #else |