]> git.baikalelectronics.ru Git - kernel.git/commit
gma500: frame buffer locking
authorAlan Cox <alan@linux.intel.com>
Tue, 29 Nov 2011 22:27:10 +0000 (22:27 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 6 Dec 2011 09:55:38 +0000 (09:55 +0000)
commit6947b831257384e3f611804b8c87e59b2bcbbb12
treee41e980dc788a75488e1fbfdadef47e250b0d902
parent03a16debb9b7021d808b8d3a88904e695147ca77
gma500: frame buffer locking

If we are the console then a printk can hit us with a spin lock held (and
in fact the kernel will do its best to take the console printing lock).

In that case we cannot politely sleep when synching after an accelerated op
but must behave obnoxiously to be sure of getting the bits out.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/accel_2d.c
drivers/gpu/drm/gma500/psb_drv.c
drivers/gpu/drm/gma500/psb_drv.h