]> git.baikalelectronics.ru Git - kernel.git/commit
dma-fence: Shrink size of struct dma_fence
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 17 Aug 2019 14:47:33 +0000 (15:47 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 17 Aug 2019 17:02:49 +0000 (18:02 +0100)
commit3b4735d596f13d7c87410b0c0a5df117d7a16879
treea8c36eec0c0fc60acb242bf071c18b33b4bbb6c8
parente0a6f67c4a746d305dde8f2fc345ebe9f5a97f79
dma-fence: Shrink size of struct dma_fence

Rearrange the couple of 32-bit atomics hidden amongst the field of
pointers that unnecessarily caused the compiler to insert some padding,
shrinks the size of the base struct dma_fence from 80 to 72 bytes on
x86-64.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190817144736.7826-3-chris@chris-wilson.co.uk
include/linux/dma-fence.h