mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-29 23:54:14 +00:00
lx_emul: fix rcu_needs_cpu() for older kernels
Resolves observed regression for the older usb host drivers (< linux version 5.18). Ref genodelabs/genode#4798
This commit is contained in:
parent
6f4242f03b
commit
97bf616b5b
@ -32,10 +32,13 @@ void rcu_read_unlock_strict(void) { }
|
|||||||
|
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0)
|
||||||
int rcu_needs_cpu(u64 basemono, u64 *nextevt)
|
int rcu_needs_cpu(u64 basemono, u64 *nextevt)
|
||||||
|
{
|
||||||
|
if (nextevt)
|
||||||
|
*nextevt = KTIME_MAX;
|
||||||
#else
|
#else
|
||||||
int rcu_needs_cpu(void)
|
int rcu_needs_cpu(void)
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user