summaryrefslogtreecommitdiffstats
path: root/drivers/staging/gma500/psb_drv.h
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2011-09-22 13:20:57 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-09-26 17:32:53 -0700
commitc7e285bedb20cc0cfe999e1b285ab31a19e1902c (patch)
tree2964e61160b4a44022f7aa04f1352ef6e2507688 /drivers/staging/gma500/psb_drv.h
parent30eb82f05dd1f12b18a0ad054401a0b5690fb3c3 (diff)
downloadop-kernel-dev-c7e285bedb20cc0cfe999e1b285ab31a19e1902c.zip
op-kernel-dev-c7e285bedb20cc0cfe999e1b285ab31a19e1902c.tar.gz
staging: 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 printing lock). In that case we cannot politely sleep when synching after an accelerated op but must behave obnixously to be sure of getting the bits out. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/gma500/psb_drv.h')
-rw-r--r--drivers/staging/gma500/psb_drv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/gma500/psb_drv.h b/drivers/staging/gma500/psb_drv.h
index 9cbb494..11d963a 100644
--- a/drivers/staging/gma500/psb_drv.h
+++ b/drivers/staging/gma500/psb_drv.h
@@ -612,7 +612,7 @@ struct drm_psb_private {
void (*exit_idle)(struct drm_device *dev, u32 update_src);
/* 2D acceleration */
- struct mutex mutex_2d;
+ spinlock_t lock_2d;
/* FIXME: Arrays anyone ? */
struct mdfld_dsi_encoder *encoder0;
OpenPOWER on IntegriCloud