aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c
diff options
context:
space:
mode:
authorEder Zulian <[email protected]>2024-11-07 16:32:23 +0000
committerPeter Zijlstra <[email protected]>2024-11-11 10:49:46 +0000
commit5c2e7736e20d9b348a44cafbfa639fe2653fbc34 (patch)
tree10bfe2498df893aef10171b7e21e695b088ac1c4 /drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c
parentkcsan, seqlock: Fix incorrect assumption in read_seqbegin() (diff)
downloadkernel-5c2e7736e20d9b348a44cafbfa639fe2653fbc34.tar.gz
kernel-5c2e7736e20d9b348a44cafbfa639fe2653fbc34.zip
rust: helpers: Avoid raw_spin_lock initialization for PREEMPT_RT
When PREEMPT_RT=y, spin locks are mapped to rt_mutex types, so using spinlock_check() + __raw_spin_lock_init() to initialize spin locks is incorrect, and would cause build errors. Introduce __spin_lock_init() to initialize a spin lock with lockdep rquired information for PREEMPT_RT builds, and use it in the Rust helper. Fixes: d2d6422f8bd1 ("x86: Allow to enable PREEMPT_RT.") Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Reported-by: kernel test robot <[email protected]> Signed-off-by: Eder Zulian <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Boqun Feng <[email protected]> Tested-by: Boqun Feng <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c')
0 files changed, 0 insertions, 0 deletions