]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9554b7e793aafbbc96343e687ac4d8a00d8df537
tree2964e61160b4a44022f7aa04f1352ef6e2507688
parent1a12b4ded4d203e4b66297de013bf8f231c5b18a
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