mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-08-22 00:40:35 +02:00
![]() [ Upstream commit 5c2e7736e20d9b348a44cafbfa639fe2653fbc34 ]
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:
|
||
---|---|---|
.. | ||
blk.c | ||
bug.c | ||
build_assert.c | ||
build_bug.c | ||
err.c | ||
helpers.c | ||
kunit.c | ||
mutex.c | ||
page.c | ||
rbtree.c | ||
refcount.c | ||
signal.c | ||
slab.c | ||
spinlock.c | ||
task.c | ||
uaccess.c | ||
wait.c | ||
workqueue.c |