From: Dave Airlie Date: Thu, 5 Jan 2012 09:55:22 +0000 (+0000) Subject: drm: introduce drm_can_sleep and use in intel/radeon drivers. (v2) X-Git-Tag: v3.3-rc1~121^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc1f71942944890c7e05fc55dc4427c94b63d4f1;p=pandora-kernel.git drm: introduce drm_can_sleep and use in intel/radeon drivers. (v2) So we have a few places where the drm drivers would like to sleep to be nice to the system, mainly in the modesetting paths, but we also have two cases were atomic modesetting must take place, panic writing and kernel debugger. So provide a central inline to determine if a sleep or delay should be used and use this in the intel and radeon drivers. v2: drop intel_drv.h MSLEEP macro, nobody uses it. Based on patch from Michel Dänzer Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43941 Reviewed-by: Daniel Vetter Signed-off-by: Dave Airlie --- Reading git-diff-tree failed