[PATCH 0/3] Remove deprecated static key API in scheduler code

From: Hongyan Xia

Date: Mon Jul 20 2026 - 05:43:16 EST


From: Hongyan Xia <hongyan.xia@xxxxxxxxxxxxx>

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(-)

--
2.47.3