Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • M msm-5.4
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • CodeLinaro
  • la
  • kernel
  • msm-5.4
  • Repository
Switch branch/tag
  • msm-5.4
  • include
  • linux
  • dma-fence.h
Find file BlameHistoryPermalink
  • Chris Wilson's avatar
    dma-fence: Store the timestamp in the same union as the cb_list · f2cb60e9
    Chris Wilson authored Aug 17, 2019
    
    
    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: default avatarChristian König <christian.koenig@amd.com>
    Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
    Cc: Christian König <christian.koenig@amd.com>
    Acked-by: default avatarChristian König <christian.koenig@amd.com&gt;.>
    Link: https://patchwork.freedesktop.org/patch/msgid/20190817153022.5749-1-chris@chris-wilson.co.uk
    f2cb60e9