sched: Reverse sched_class layout
authorPeter Zijlstra <peterz@infradead.org>
Tue, 17 May 2022 11:46:54 +0000 (13:46 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 19 May 2022 21:46:13 +0000 (23:46 +0200)
commit546a3fee174969ff323d70ff27b1ef181f0d7ceb
tree35b15b82da76831919f3d48539f0c7c2b1d3882d
parent734387ec2f9d77b00276042b1fa7c95f48ee879d
sched: Reverse sched_class layout

Because GCC-12 is fully stupid about array bounds and it's just really
hard to get a solid array definition from a linker script, flip the
array order to avoid needing negative offsets :-/

This makes the whole relational pointer magic a little less obvious, but
alas.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lkml.kernel.org/r/YoOLLmLG7HRTXeEm@hirez.programming.kicks-ass.net
include/asm-generic/vmlinux.lds.h
kernel/sched/core.c
kernel/sched/sched.h