diff options
author | Pavel Machek <pavel@suse.cz> | 2006-09-01 01:02:11 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-26 00:08:38 -0400 |
commit | bb84c89f94851161f387285d0a449b4a3f29f4df (patch) | |
tree | 6cda3e7cbfc57956f732de8f9c619625bcbba8ea /drivers/base/power/resume.c | |
parent | 84ed64ee8f7dfd89f59857124dbeb8a350c6e03d (diff) |
PM: device_suspend/resume may sleep
This adds warning when someone tries them from atomic context.
Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/power/resume.c')
-rw-r--r-- | drivers/base/power/resume.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/power/resume.c b/drivers/base/power/resume.c index 48e3d49d7b65..7cb62d62c958 100644 --- a/drivers/base/power/resume.c +++ b/drivers/base/power/resume.c | |||
@@ -96,6 +96,7 @@ void dpm_resume(void) | |||
96 | 96 | ||
97 | void device_resume(void) | 97 | void device_resume(void) |
98 | { | 98 | { |
99 | might_sleep(); | ||
99 | down(&dpm_sem); | 100 | down(&dpm_sem); |
100 | dpm_resume(); | 101 | dpm_resume(); |
101 | up(&dpm_sem); | 102 | up(&dpm_sem); |