sync: allow async waits to be canceled
authorErik Gilling <konkers@android.com>
Tue, 15 May 2012 23:23:26 +0000 (16:23 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Jul 2012 09:11:51 +0000 (14:11 +0530)
commitc2a9b518d78654adc7a6375a4033fd178c898a6a
treeae1ed4cae26ba3fc53a88bfb38773d904e82d4ad
parent8ef1a21ad82097f0dbde363f4beaf865a47c9ed2
sync: allow async waits to be canceled

In order to allow drivers to cleanly handled teardown we need to allow them
to cancel pending async waits.  To do this cleanly, we move allocation of
sync_fence_waiter to the driver calling sync_async_wait().

Change-Id: Ifcd95648be6ec07026d67f810070a4310f099989
Signed-off-by: Erik Gilling <konkers@android.com>
drivers/base/sync.c
include/linux/sync.h