Jason Ekstrand 9c19fb10a5 drm/syncobj: Add a callback mechanism for replace_fence (v3)
It is useful in certain circumstances to know when the fence is replaced
in a syncobj.  Specifically, it may be useful to know when the fence
goes from NULL to something valid.  This does make syncobj_replace_fence
a little more expensive because it has to take a lock but, in the common
case where there is no callback list, it spends a very short amount of
time inside the lock.

v2:
 - Don't lock in drm_syncobj_fence_get.  We only really need to lock
   around fence_replace to make the callback work.
v3:
 - Fix the cb_list comment to make kbuild happy

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2017-08-29 06:26:42 +10:00
..
2017-03-24 09:36:06 +01:00
2017-08-11 10:47:17 +02:00
2017-06-16 13:58:27 +10:00
2017-06-14 12:10:22 +10:00
2017-05-27 15:39:28 -04:00
2017-06-01 08:02:14 +02:00
2016-06-21 22:10:55 +02:00
2015-08-12 12:24:05 -04:00
2017-06-01 08:02:14 +02:00
2017-03-09 16:18:02 +01:00
2014-03-17 20:11:57 +01:00