sync: add reference counting to timelines
authorErik Gilling <konkers@android.com>
Fri, 3 Aug 2012 00:26:45 +0000 (17:26 -0700)
committer黄涛 <huangtao@rock-chips.com>
Fri, 22 Feb 2013 09:47:01 +0000 (17:47 +0800)
commitb84b847376fe79e7038eb0e0f3c873e9233328dd
tree0943078b304b5676a09b65c28eff186cfb339059
parent3162da1d1873915b3e683362420d4bdad799885f
sync: add reference counting to timelines

If a timeline is destroyed while fences still hold pts on it, the reworked
fence release handler can cause the timeline to be freed before all it's points
are freed.

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