diff options
| author | Chris Wilson <[email protected]> | 2019-08-17 15:30:22 +0000 |
|---|---|---|
| committer | Chris Wilson <[email protected]> | 2019-08-17 17:46:33 +0000 |
| commit | f2cb60e9a3881e679465f84140754bc9d29956ea (patch) | |
| tree | 62b3bc44752ee688d651354aedf6742ffb8b51e0 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
| parent | dma-fence: Simply wrap dma_fence_signal_locked with dma_fence_signal (diff) | |
| download | kernel-f2cb60e9a3881e679465f84140754bc9d29956ea.tar.gz kernel-f2cb60e9a3881e679465f84140754bc9d29956ea.zip | |
dma-fence: Store the timestamp in the same union as the cb_list
The timestamp and the cb_list are mutually exclusive, the cb_list can
only be added to prior to being signaled (and once signaled we drain),
while the timestamp is only valid upon being signaled. Both the
timestamp and the cb_list are only valid while the fence is alive, and
as soon as no references are held can be replaced by the rcu_head.
By reusing the union for the timestamp, we squeeze the base dma_fence
struct to 64 bytes on x86-64.
v2: Sort the union chronologically
Suggested-by: Christian König <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Cc: Christian König <[email protected]>
Acked-by: Christian König <[email protected]>.
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
0 files changed, 0 insertions, 0 deletions
