aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
diff options
context:
space:
mode:
authorJP Kobryn <[email protected]>2025-05-22 01:32:02 +0000
committerTejun Heo <[email protected]>2025-05-22 01:54:58 +0000
commit731bdd97466a280d6bdd8eceeb13d9fab6f26cbd (patch)
tree31a5ef2384722d64d2c586e1bdbcd0334b318549 /drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
parentcgroup, docs: be specific about bandwidth control of rt processes (diff)
downloadkernel-731bdd97466a280d6bdd8eceeb13d9fab6f26cbd.tar.gz
kernel-731bdd97466a280d6bdd8eceeb13d9fab6f26cbd.zip
cgroup: avoid per-cpu allocation of size zero rstat cpu locks
Subsystem rstat locks are dynamically allocated per-cpu. It was discovered that a panic can occur during this allocation when the lock size is zero. This is the case on non-smp systems, since arch_spinlock_t is defined as an empty struct. Prevent this allocation when !CONFIG_SMP by adding a pre-processor conditional around the affected block. Signed-off-by: JP Kobryn <[email protected]> Reported-by: Klara Modin <[email protected]> Fixes: 748922dcfabd ("cgroup: use subsystem-specific rstat locks to avoid contention") Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c')
0 files changed, 0 insertions, 0 deletions