Skip to content

Commit bf934be

Browse files
committed
sched_ext: Add missing cfi stub for ops.tick
The cfi stub for ops.tick was missing which will fail scheduler loading after pending BPF changes. Add it. Signed-off-by: Tejun Heo <[email protected]>
1 parent 59cfdf3 commit bf934be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/sched/ext.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5051,6 +5051,7 @@ static s32 select_cpu_stub(struct task_struct *p, s32 prev_cpu, u64 wake_flags)
50515051
static void enqueue_stub(struct task_struct *p, u64 enq_flags) {}
50525052
static void dequeue_stub(struct task_struct *p, u64 enq_flags) {}
50535053
static void dispatch_stub(s32 prev_cpu, struct task_struct *p) {}
5054+
static void tick_stub(struct task_struct *p) {}
50545055
static void runnable_stub(struct task_struct *p, u64 enq_flags) {}
50555056
static void running_stub(struct task_struct *p) {}
50565057
static void stopping_stub(struct task_struct *p, bool runnable) {}
@@ -5079,6 +5080,7 @@ static struct sched_ext_ops __bpf_ops_sched_ext_ops = {
50795080
.enqueue = enqueue_stub,
50805081
.dequeue = dequeue_stub,
50815082
.dispatch = dispatch_stub,
5083+
.tick = tick_stub,
50825084
.runnable = runnable_stub,
50835085
.running = running_stub,
50845086
.stopping = stopping_stub,

0 commit comments

Comments
 (0)