sync: update new fence status with sync_fence_signal_pt
authorErik Gilling <konkers@android.com>
Tue, 16 Oct 2012 00:51:01 +0000 (17:51 -0700)
committer黄涛 <huangtao@rock-chips.com>
Fri, 22 Feb 2013 09:47:14 +0000 (17:47 +0800)
commit2211c1043768596555603eceefd4bd6e7aba97ab
treea3f37a7d77ae89bd74769cd3e2e89b89c3eeb672
parente3ab954943623e9b2b15ccd157748c92ab629717
sync: update new fence status with sync_fence_signal_pt

If a fence's pt is signaled before sync_fence_create is called, the fence
will never transition into the signaled state.  This also address a tiny
race if a merged fence's pt after sync_fence_get_status checks it's status
and before fence->status is updated.

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