gfx: drv: Move NULL check outside spin lock
authorPauli Nieminen <pauli.nieminen@linux.intel.com>
Mon, 2 Jan 2012 14:24:31 +0000 (16:24 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Jul 2012 09:29:22 +0000 (12:29 +0300)
commit51855c38a071f195acf73861b7870e0ad272d671
treec86223cb294e0d543f1bdcd978eba6a5ffb15b27
parent537e2f8ad0b8bbd1d6de8cb29b620f5169d0b743
gfx: drv: Move NULL check outside spin lock

pending_flip->event is owned by single kernel thread at a time so it can
be checked outside of the spin lock. Spin lock is only protecting the
linked list where the event is added.

Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
drivers/staging/mrst/drv/psb_page_flip.c