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:
Stefan Kalkowski 2023-05-31 11:46:13 +02:00 committed by Norman Feske
parent 6f4242f03b
commit 97bf616b5b

View File

@ -32,10 +32,13 @@ void rcu_read_unlock_strict(void) { }
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0)
int rcu_needs_cpu(u64 basemono, u64 *nextevt)
{
if (nextevt)
*nextevt = KTIME_MAX;
#else
int rcu_needs_cpu(void)
#endif
{
#endif
return 0;
}