summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorfangqiurong <fangqiurong@kylinos.cn>2026-09-01 09:32:58 +0800
committerTejun Heo <tj@kernel.org>2026-09-01 10:02:00 -1000
commit92344fad5b54d1c20ea19f882a4f086ca68c11c0 (patch)
treeb7976542c5b561154581948bece725b98e96130a /scripts/Makefile.thinlto
parent14eba6d98cabe625218fae0bfed8959d97226bc3 (diff)
downloadlinux-next-92344fad5b54d1c20ea19f882a4f086ca68c11c0.tar.gz
linux-next-92344fad5b54d1c20ea19f882a4f086ca68c11c0.zip
sched_ext: Skip per-CPU data allocation for built-in DSQs
Only user DSQs use the per-DSQ deferred reenqueue state: schedule_dsq_reenq() serves the local DSQ through sch->pcpu->deferred_reenq_local and rejects all other built-in DSQ ids. Every DSQ, built-in or not, still allocates a struct scx_dsq_pcpu per possible CPU. As the local, reject, rescue and bypass DSQs are themselves per-CPU, the wasted memory grows with the square of the CPU count, most of it at boot before any scheduler is loaded. Skip the allocation for built-in DSQ ids. While at it, rename ->pcpu to ->pcpu_user so that the per-CPU data reads as user-DSQ only. Signed-off-by: fangqiurong <fangqiurong@kylinos.cn> Reviewed-by: Zhan Xusheng <zhanxusheng@xiaomi.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions