lx_emul: provide _raw_read_lock/unlock functions

Required by i.MX8's gpu driver. '_raw_read_lock' was already present but
not implemented, add it's counter part as well.

issue #4713
This commit is contained in:
Sebastian Sumpf 2023-01-05 11:18:06 +01:00 committed by Christian Helmuth
parent 56e7e2ad53
commit 8279038da2

View File

@ -105,7 +105,15 @@ void __lockfunc _raw_spin_unlock_irqrestore(raw_spinlock_t * lock,
#ifndef CONFIG_INLINE_READ_LOCK
void __lockfunc _raw_read_lock(rwlock_t * lock)
{
lx_emul_trace_and_stop(__func__);
arch_read_lock(&(lock)->raw_lock);
}
#endif
#ifndef CONFIG_INLINE_READ_UNLOCK
void __lockfunc _raw_read_unlock(rwlock_t * lock)
{
arch_read_unlock(&(lock)->raw_lock);
}
#endif