aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2025-05-12 09:27:35 +0000
committerPaolo Abeni <[email protected]>2025-05-15 13:23:31 +0000
commit0af5928f358c40c1fe5ede79f66f040e23124044 (patch)
treedfbac82d8607fa8df428661203fa13075f0685b4 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentrds: Disable only bottom halves in rds_page_remainder_alloc() (diff)
downloadkernel-0af5928f358c40c1fe5ede79f66f040e23124044.tar.gz
kernel-0af5928f358c40c1fe5ede79f66f040e23124044.zip
rds: Acquire per-CPU pointer within BH disabled section
rds_page_remainder_alloc() obtains the current CPU with get_cpu() while disabling preemption. Then the CPU number is used to access the per-CPU data structure via per_cpu(). This can be optimized by relying on local_bh_disable() to provide a stable CPU number/ avoid migration and then using this_cpu_ptr() to retrieve the data structure. Cc: Allison Henderson <[email protected]> Cc: [email protected] Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions