From a27b509452eafafd35e0a6ef4886b0cd644dd29b Mon Sep 17 00:00:00 2001 From: Changwoo Min Date: Mon, 18 Mar 2024 21:24:14 +0900 Subject: [PATCH] sdx_lavd: use is_wakeup_ef() in checking wait flag Signed-off-by: Changwoo Min --- scheds/rust/scx_lavd/src/bpf/main.bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheds/rust/scx_lavd/src/bpf/main.bpf.c b/scheds/rust/scx_lavd/src/bpf/main.bpf.c index 59d69c7..e79e158 100644 --- a/scheds/rust/scx_lavd/src/bpf/main.bpf.c +++ b/scheds/rust/scx_lavd/src/bpf/main.bpf.c @@ -1437,7 +1437,7 @@ void BPF_STRUCT_OPS(lavd_runnable, struct task_struct *p, u64 enq_flags) * is updated. The @current task is a waker and @p is a waiter, which * is being wakened up now. */ - if (!(enq_flags & SCX_ENQ_WAKEUP)) + if (!is_wakeup_ef(enq_flags)) return; waker = bpf_get_current_task_btf();