summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJianyong Wu <wujianyong@hygon.cn>2026-05-13 23:39:12 +0300
committerPeter Zijlstra <peterz@infradead.org>2026-05-18 22:33:14 +0300
commita2b4cf39d9d333bfeb9262dbaafe3d24d405a5c0 (patch)
tree21d11853f2a2590d89c8c14812aed654fdc76d1e /include/linux
parent067a3135814334a8ea7241faef364cc48c6340bc (diff)
downloadlinux-a2b4cf39d9d333bfeb9262dbaafe3d24d405a5c0.tar.xz
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
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index d2010483cd77..6d883f109ba3 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -2423,6 +2423,7 @@ struct sched_cache_stat {
struct sched_cache_time __percpu *pcpu_sched;
raw_spinlock_t lock;
unsigned long epoch;
+ unsigned long next_scan;
int cpu;
} ____cacheline_aligned_in_smp;