summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/gma500/psb_drv.h
diff options
context:
space:
mode:
authorAlan Cox2011-11-29 23:27:10 +0100
committerDave Airlie2011-12-06 10:55:38 +0100
commit9242fe23d2ebab9c61dbc50d65f30cfa20a856ae (patch)
treee41e980dc788a75488e1fbfdadef47e250b0d902 /drivers/gpu/drm/gma500/psb_drv.h
parentgma500: Fix backlight crash (diff)
downloadkernel-qcow2-linux-9242fe23d2ebab9c61dbc50d65f30cfa20a856ae.tar.gz
kernel-qcow2-linux-9242fe23d2ebab9c61dbc50d65f30cfa20a856ae.tar.xz
kernel-qcow2-linux-9242fe23d2ebab9c61dbc50d65f30cfa20a856ae.zip
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>
Diffstat (limited to 'drivers/gpu/drm/gma500/psb_drv.h')
-rw-r--r--drivers/gpu/drm/gma500/psb_drv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/gma500/psb_drv.h b/drivers/gpu/drm/gma500/psb_drv.h
index f46b3c1edb1d..5ec8edf65163 100644
--- a/drivers/gpu/drm/gma500/psb_drv.h
+++ b/drivers/gpu/drm/gma500/psb_drv.h
@@ -606,7 +606,7 @@ struct drm_psb_private {
void *fbdev;
/* 2D acceleration */
- struct mutex mutex_2d;
+ spinlock_t lock_2d;
};