staging: gma500: frame buffer locking
authorAlan Cox <alan@linux.intel.com>
Thu, 22 Sep 2011 12:20:57 +0000 (13:20 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 27 Sep 2011 00:32:53 +0000 (17:32 -0700)
commitc7e285bedb20cc0cfe999e1b285ab31a19e1902c
tree2964e61160b4a44022f7aa04f1352ef6e2507688
parent30eb82f05dd1f12b18a0ad054401a0b5690fb3c3
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>
drivers/staging/gma500/accel_2d.c
drivers/staging/gma500/psb_drv.c
drivers/staging/gma500/psb_drv.h