Re: [RFC PATCH v3 bpf-next 2/5] sched: use static_branch_likely() for the NUMA balancing tick check
From: Gregory Price (Meta)
Date: Tue Oct 20 2026 - 22:26:47 EST
On 2026-10-19 14:41 +0800, Yafang Shao wrote:
> task_tick_fair() checks sched_numa_balancing on every tick. The
> static_branch_unlikely() annotation reserves the nop for the disabled case,
> so the default configuration (NUMA_BALANCING_DEFAULT_ENABLED=y) pays a
> taken jump per tick. Flip the polarity to static_branch_likely() so that
> the fast path matches the default.
>
> Signed-off-by: Yafang Shao <laoar.shao@xxxxxxxxx>
same with this one, this is useful separate of your series, please
submit separately.
Acked-by: Gregory Price (Meta) <gourry@xxxxxxxxxx>
--
Gregory Price (Meta) <gourry@xxxxxxxxxx>