Re: [PATCH RESEND] sched: Move some scheduler fields to new static branch API

From: Peter Zijlstra

Date: Wed Aug 19 2026 - 08:59:02 EST


On Wed, Aug 19, 2026 at 05:49:48PM +0530, Shrikanth Hegde wrote:
> Hi Hongyan.
>
> On 8/19/26 1:39 PM, Hongyan Xia wrote:
> > From: Hongyan Xia <hongyan.xia@xxxxxxxxxxxxx>
> >
> > __cfs_bandwidth_used uses struct static_key directly which is
> > deprecated. Fix.
>
> A bit of context on why it is deprecated would help.
>
> >
> > sk_dynamic_* uses static_key_{enable/disable}(), which aren't really
> > deprecated, but take the opportunity to move to the new static_branch_*
> > APIs to be consistent.
> >
>
> Mark had a series to remove a few of them completely. IIRC only lazy
> check will remain.

Yeah, I have those pending. I'll smash everything together and see where
the pieces fall post -rc1.