mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-15 23:17:14 +00:00
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:
parent
56e7e2ad53
commit
8279038da2
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user