From 5effa2ea8e54f0708a33663d55404292a8b65c4d Mon Sep 17 00:00:00 2001 From: I Hsin Cheng Date: Fri, 9 Aug 2024 20:45:30 +0800 Subject: [PATCH] scx_lavd: Removed unused function Removed unused function "is_lat_cri_task()". Signed-off-by: I Hsin Cheng --- scheds/rust/scx_lavd/src/bpf/main.bpf.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/scheds/rust/scx_lavd/src/bpf/main.bpf.c b/scheds/rust/scx_lavd/src/bpf/main.bpf.c index aebe2bdf3..3da96b8fd 100644 --- a/scheds/rust/scx_lavd/src/bpf/main.bpf.c +++ b/scheds/rust/scx_lavd/src/bpf/main.bpf.c @@ -1687,13 +1687,6 @@ static bool try_yield_current_cpu(struct task_struct *p_run, return ret; } -static bool is_lat_cri_task(struct task_ctx *taskc) -{ - struct sys_stat *stat_cur = get_sys_stat_cur(); - - return taskc->lat_cri > stat_cur->thr_lat_cri; -} - static void put_global_rq(struct task_struct *p, struct task_ctx *taskc, struct cpu_ctx *cpuc, u64 enq_flags) {