Skip to content

Use jump_label for sched_feat()

Peter Zijlstra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3jump_label, x86: Fix section mismatcharch/x86/kernel/jump_label.c kernel/jump_label.c+2 -20 replies
2/3sched: Fix compile error for UP,!NOHZinclude/linux/sched.h+1 -11 reply
3/3sched: Use jump_labels for sched_featkernel/sched/core.c kernel/sched/features.h kernel/sched/sched.h+81 -220 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Use jump_label for sched_feat()

These patches implement sched_feat() using jump_labels. The first is a section mismatch fix. The second patch provides a little infrastructure and the third patch applies it to make sched_feat() use static_branch().

It uses static_branch() coupled with unlikely/likely in order to control the branch block position. I haven't checked if it works, but it likely doesn't, although it should.