summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/amd/amdgpu/amdgpu_fence.c
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2020-10-11 05:45:33 +0000
committerjsg <jsg@openbsd.org>2020-10-11 05:45:33 +0000
commit0f5570612629cd6d43c6720866b77252fc86cd80 (patch)
tree8e8b5824f2bdab46f01d885039afe13c735e3504 /sys/dev/pci/drm/amd/amdgpu/amdgpu_fence.c
parentFix an assert conditioned on DTLS1_VERSION. (diff)
downloadwireguard-openbsd-0f5570612629cd6d43c6720866b77252fc86cd80.tar.xz
wireguard-openbsd-0f5570612629cd6d43c6720866b77252fc86cd80.zip
Align pool items on CACHELINESIZE when replacing linux kmem_cache with
SLAB_HWCACHE_ALIGN flag. tested by semarie@
Diffstat (limited to 'sys/dev/pci/drm/amd/amdgpu/amdgpu_fence.c')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_fence.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_fence.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_fence.c
index db3f288a633..7e6c107c244 100644
--- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_fence.c
+++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_fence.c
@@ -69,7 +69,7 @@ int amdgpu_fence_slab_init(void)
return -ENOMEM;
#else
pool_init(&amdgpu_fence_slab, sizeof(struct amdgpu_fence),
- 0, IPL_TTY, 0, "amdgpu_fence", NULL);
+ CACHELINESIZE, IPL_TTY, 0, "amdgpu_fence", NULL);
#endif
return 0;
}