Skip to content

Remove deprecated static key API in scheduler code

Hongyan Xia kvm linux-arm-kernel linux-riscv linuxppc-dev lkml loongarch virtualization xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review 1 of 3 applied

Patches in v1 1 of 3 applied

#Subject and filesSizeRepliesApplied
1/3sched/fair: Move __cfs_bandwidth_used to new static key APIkernel/sched/fair.c+4 -41 reply
2/3sched: Convert paravirt_steal to new static key APIsarch/arm64/kernel/paravirt.c arch/loongarch/kernel/paravirt.c arch/powerpc/platforms/pseries/setup.c +7 more+21 -211 replyApplied
3/3sched/feat: Use the new static key API for sched_featkernel/sched/debug.c kernel/sched/sched.h+19 -100 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchJuergen GrossBen Segall
1/3R-b
2/3A-b
3/3

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 0/3] Remove deprecated static key API in scheduler code

From: Hongyan Xia <[email protected]>

While working on something static-key-related I noticed we still have a few sites calling the deprecated static key APIs. The old API with name static_key_true and static_key_false are also super confusing. Move all of them to the new API.

The first two are straightforward. The 3rd one is tricky and needs more review. After this series, all deprecated APIs are gone except two lines of code in SCHED_FEAT.

No functional change intended for the entire series.

Hongyan Xia (3):
sched/fair: Move __cfs_bandwidth_used to new static key API
sched: Convert paravirt_steal to new static key APIs sched/feat: Use the new static key API for sched_feat

 arch/arm64/kernel/paravirt.c           |  4 ++--
 arch/loongarch/kernel/paravirt.c       |  4 ++--
 arch/powerpc/platforms/pseries/setup.c |  4 ++--
 arch/riscv/kernel/paravirt.c           |  4 ++--
 arch/x86/kernel/cpu/vmware.c           |  4 ++--
 arch/x86/kernel/kvm.c                  |  4 ++--
 drivers/xen/time.c                     |  4 ++--
 include/linux/sched/cputime.h          |  6 +++---
 kernel/sched/core.c                    |  4 ++--
 kernel/sched/cputime.c                 |  4 ++--
 kernel/sched/debug.c                   | 10 +++++-----
 kernel/sched/fair.c                    |  8 ++++----
 kernel/sched/sched.h                   | 19 ++++++++++++++-----
 13 files changed, 44 insertions(+), 35 deletions(-)
Signature · 1 line
2.47.3