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-08-29 06:20:31 +10:00
2017-08-10 11:26:49 +10:00
2017-08-25 09:30:54 +10:00
2017-08-21 17:37:33 +10:00
2017-08-18 09:10:46 +02:00
2017-08-16 21:35:57 +02:00
2017-07-27 08:15:43 +10:00
2017-08-11 10:49:21 +02:00