sync: add internal refcounting to fences
authorErik Gilling <konkers@android.com>
Mon, 23 Jul 2012 23:43:05 +0000 (16:43 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 13 Aug 2012 08:43:14 +0000 (13:43 +0530)
commit4af802dbf997b9a84664f2ab7f0e49388fbfec01
tree5c3ea3805642858efc08f52d6afe745f2f4b39ee
parent5a3dbf76a6fa3b563cfcdba95e0337a214d9caf4
sync: add internal refcounting to fences

If a fence is released while a timeline that one of it's pts is on is being
signaled, it is possible for that fence to be deleted before it is signaled.
This patch adds a refcount for internal references such as signaled pt
processing.

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