mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-24 11:50:23 +00:00
scx_layered: Clean up waker code
Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com>
This commit is contained in:
parent
c55b2c6e69
commit
6fb2f0b2b4
@ -1334,10 +1334,8 @@ void on_wakeup(struct task_struct *p, struct task_ctx *tctx)
|
||||
struct task_ctx *waker_tctx;
|
||||
struct task_struct *waker;
|
||||
|
||||
if (!(cctx = lookup_cpu_ctx(-1)))
|
||||
return;
|
||||
|
||||
if (!(layer = lookup_layer(tctx->layer)))
|
||||
if (!(cctx = lookup_cpu_ctx(-1)) ||
|
||||
!(layer = lookup_layer(tctx->layer)))
|
||||
return;
|
||||
|
||||
if (!(waker = bpf_get_current_task_btf()) ||
|
||||
|
Loading…
Reference in New Issue
Block a user