sync: add reference counting to timelines
authorErik Gilling <konkers@android.com>
Fri, 3 Aug 2012 00:26:45 +0000 (17:26 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 13 Aug 2012 08:43:15 +0000 (13:43 +0530)
commit3e543098e5bb27e50c410961396d5555526c72ef
tree3ea27ab73844f5b5669fec75c2b88d9462569746
parentae757edf2442d5da6a42d706d1e6dfb346ba85c3
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