Skip to content

jump_label: Another (better) static_key interface

Peter Zijlstra linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8jump_label: Rename JUMP_LABEL_{EN,DIS}ABLEarch/arm/kernel/jump_label.c arch/arm64/kernel/jump_label.c arch/mips/kernel/jump_label.c +6 more+18 -180 replies
2/8jump_label: Rename JUMP_LABEL_TYPE_*include/linux/jump_label.h kernel/jump_label.c+21 -291 reply
3/8jump_label: Add jump_entry_key() helperkernel/jump_label.c+10 -50 replies
4/8jump_label: Add static_key_{en,dis}able() helpersinclude/linux/jump_label.h kernel/sched/core.c+22 -40 replies
5/8jump_label: Rework update logickernel/jump_label.c+38 -500 replies
6/8jump_label: Add a new static_key interfacearch/arm/include/asm/jump_label.h arch/arm64/include/asm/jump_label.h arch/mips/include/asm/jump_label.h +6 more+294 -3920 replies
7/8jump_label: Add selftestarch/Kconfig kernel/jump_label.c+44 -12 replies
8/8x86, tsc: Employ static_branch_likely()arch/x86/kernel/tsc.c+10 -121 reply

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchHeiko CarstensMichael Ellerman
1/8
2/8
3/8
4/8
5/8
6/8A-b A-b
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH -v2 0/8] jump_label: Another (better) static_key interface

Hi all,

After yet another bug because of the weirdness of the static key interface, here an attempt at providing a better one.

This series is tested on x86_64 (by me) and s390x (heiko).

---
 arch/Kconfig                          |    6 +
 arch/arm/include/asm/jump_label.h     |   24 ++--
 arch/arm/kernel/jump_label.c          |    2 
 arch/arm64/include/asm/jump_label.h   |   18 ++-
 arch/arm64/kernel/jump_label.c        |    2 
 arch/mips/include/asm/jump_label.h    |   19 +++
 arch/mips/kernel/jump_label.c         |    2 
 arch/powerpc/include/asm/jump_label.h |   19 +++
 arch/powerpc/kernel/jump_label.c      |    2 
 arch/s390/include/asm/jump_label.h    |   19 +++
 arch/s390/kernel/jump_label.c         |    2 
 arch/sparc/include/asm/jump_label.h   |   35 ++++--
 arch/sparc/kernel/jump_label.c        |    2 
 arch/x86/include/asm/jump_label.h     |   21 +++
 arch/x86/kernel/jump_label.c          |    2 
 arch/x86/kernel/tsc.c                 |   22 +--
 include/linux/jump_label.h            |  188 +++++++++++++++++++++++++++++-----
 kernel/jump_label.c                   |  158 +++++++++++++++++++---------
 kernel/sched/core.c                   |    6 -
 19 files changed, 424 insertions(+), 125 deletions(-)