Message ID | 20140204225340.GB12991@kria (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 04086c5..6ab14455f 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -1696,7 +1696,7 @@ extern int drm_platform_init(struct drm_driver *driver, struct platform_device * /* returns true if currently okay to sleep */ static __inline__ bool drm_can_sleep(void) { - if (in_atomic() || in_dbg_master() || irqs_disabled()) + if (in_atomic() || in_dbg_master() || !in_interrupt() || irqs_disabled()) return false; return true; }