sync: allow async waits to be canceled
authorErik Gilling <konkers@android.com>
Tue, 15 May 2012 23:23:26 +0000 (16:23 -0700)
committer黄涛 <huangtao@rock-chips.com>
Fri, 22 Feb 2013 09:46:54 +0000 (17:46 +0800)
commit064f4dd519dc7bef7d073a931d12e5fdf8760e64
treee2321370a246d3ed825a105d0b389a850bb6331b
parent7b59177a62ebdd0b7fc96368436baf74aa09c757
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