scx_layered: Clean up waker code

Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com>
This commit is contained in:
Daniel Hodges 2024-09-22 02:49:43 -04:00
parent c55b2c6e69
commit 6fb2f0b2b4
No known key found for this signature in database
GPG Key ID: D295F6D6F3E97B18

View File

@ -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()) ||