]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched/cache: Allow only 1 thread of the process to calculate the LLC occupancy
authorJianyong Wu <wujianyong@hygon.cn>
Wed, 13 May 2026 20:39:12 +0000 (13:39 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 18 May 2026 19:33:14 +0000 (21:33 +0200)
commita2b4cf39d9d333bfeb9262dbaafe3d24d405a5c0
tree21d11853f2a2590d89c8c14812aed654fdc76d1e
parent067a3135814334a8ea7241faef364cc48c6340bc
sched/cache: Allow only 1 thread of the process to calculate the LLC occupancy

Scanning online CPUs to calculate the occupancy might be
time-consuming. Only allow 1 thread of the process to scan
the CPUs at the same time, which is similar to what
NUMA balance does in task_numa_work().

Signed-off-by: Jianyong Wu <wujianyong@hygon.cn>
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/5672b52e588b855b01e5a1a17822f7c6c7237a3d.1778703694.git.tim.c.chen@linux.intel.com
include/linux/sched.h
kernel/sched/fair.c