From 315e5b3fe247974670871fd02d9e359f130f5d2d Mon Sep 17 00:00:00 2001 From: Changwoo Min Date: Mon, 18 Mar 2024 15:12:20 +0900 Subject: [PATCH] scx_lavd: remove unnecessary arg from put_local_rq() cpu_id is unused and not necessary in pu_local_rq(), so it it removed. Signed-off-by: Changwoo Min --- scheds/rust/scx_lavd/src/bpf/main.bpf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scheds/rust/scx_lavd/src/bpf/main.bpf.c b/scheds/rust/scx_lavd/src/bpf/main.bpf.c index b01e899..db1f9fe 100644 --- a/scheds/rust/scx_lavd/src/bpf/main.bpf.c +++ b/scheds/rust/scx_lavd/src/bpf/main.bpf.c @@ -389,7 +389,7 @@ static u16 get_nice_prio(struct task_struct *p); static u64 get_task_load_ideal(struct task_struct *p); static bool put_local_rq(struct task_struct *p, struct task_ctx *taskc, - s32 cpu_id, u64 enq_flags); + u64 enq_flags); static bool put_global_rq(struct task_struct *p, struct task_ctx *taskc, u64 enq_flags); @@ -1250,7 +1250,7 @@ static void calc_when_to_run(struct task_struct *p, struct task_ctx *taskc, } static bool put_local_rq(struct task_struct *p, struct task_ctx *taskc, - s32 cpu_id, u64 enq_flags) + u64 enq_flags) { /* * Calculate when a tack can be scheduled. If a task is cannot be @@ -1352,7 +1352,7 @@ s32 BPF_STRUCT_OPS(lavd_select_cpu, struct task_struct *p, s32 prev_cpu, return prev_cpu; } - if (!put_local_rq(p, taskc, cpu_id, 0)) { + if (!put_local_rq(p, taskc, 0)) { /* * If a task is overscheduled (greedy_ratio > 1000), we * do not select a CPU, so that later the enqueue