--- zzzz-none-000/linux-5.4.213/kernel/locking/semaphore.c 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/kernel/locking/semaphore.c 2024-08-14 09:02:11.000000000 +0000 @@ -260,3 +260,16 @@ waiter->up = true; wake_up_process(waiter->task); } + +#ifdef CONFIG_AVM_FASTIRQ +struct task_struct *__rte_sem_partial_wake(struct semaphore *sem) +{ + struct semaphore_waiter *waiter = list_first_entry(&sem->wait_list, + struct semaphore_waiter, list); + + list_del(&waiter->list); + waiter->up = true; + + return waiter->task; +} +#endif