scx_lavd: Correct the type of taskc within lavd_dispatch()

The type of "taskc" within "lavd_dispatch()" was "struct task_struct *",
while it should be "struct task_ctx *".

Signed-off-by: I Hsin Cheng <richard120310@gmail.com>
This commit is contained in:
I Hsin Cheng 2024-10-31 18:37:41 +08:00
parent 83b5f4eb23
commit f55cc965ac

View File

@ -1233,8 +1233,9 @@ void BPF_STRUCT_OPS(lavd_dispatch, s32 cpu, struct task_struct *prev)
{
u64 now = bpf_ktime_get_ns();
struct cpu_ctx *cpuc;
struct task_ctx *taskc;
struct bpf_cpumask *active, *ovrflw;
struct task_struct *p, *taskc;
struct task_struct *p;
u64 dsq_id = 0;
bool try_consume = false;