[PATCH] drm: introduce drm_can_sleep and use in intel/radeon drivers.

Daniel Vetter daniel at ffwll.ch
Thu Jan 5 08:00:52 PST 2012


On Thu, Jan 05, 2012 at 09:57:56AM +0000, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
> 
> 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.
> 
> Based on patch from Michel Dänzer <michel.daenzer at amd.com>
> 
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43941
> 
> Signed-off-by: Dave Airlie <airlied at redhat.com>

If MSLEEP is indeed unused, I think it should just die - we have way too
much yelling cruft from dri1 yonder lying around that hides important
details like this. Otherwise

Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>
-- 
Daniel Vetter
Mail: daniel at ffwll.ch
Mobile: +41 (0)79 365 57 48


More information about the dri-devel mailing list