Skip to content

Commit

Permalink
scx_lavd: Removed unused function
Browse files Browse the repository at this point in the history
Removed unused function "is_lat_cri_task()".

Signed-off-by: I Hsin Cheng <[email protected]>
  • Loading branch information
vax-r committed Aug 9, 2024
1 parent 4e40ba3 commit 5effa2e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions scheds/rust/scx_lavd/src/bpf/main.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 5effa2e

Please sign in to comment.