device_suspend/resume may sleep
Subsystems (4)
This adds warning when someone tries them from atomic context.
Signed-off-by Pavel Machek <[email protected]>
drivers/base/power/resume.c +1 -0
@@ -74,6 +74,7 @@ void dpm_resume(void)void device_resume (void ) { +might_sleep ();down (&dpm_sem);dpm_resume ();up (&dpm_sem);
drivers/base/power/suspend.c +1 -0
@@ -100,6 +100,7 @@ int device_suspend(pm_message_t state) {int error =0 ; +might_sleep ();down (&dpm_sem);down (&dpm_list_sem);while (!list_empty (&dpm_active) && error ==0 ) {
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html