summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorTim Chen <tim.c.chen@linux.intel.com>2026-04-01 14:52:18 -0700
committerPeter Zijlstra <peterz@infradead.org>2026-04-09 15:49:49 +0200
commit47d8696b95f7397fe7cad2d194d550ffe82efc15 (patch)
tree4411dcfa3834b48c5d2d975685fbbc9041f818fb /init
parentb5ea300a17e37eada7a98561fbd34a3054578713 (diff)
downloadlwn-47d8696b95f7397fe7cad2d194d550ffe82efc15.tar.gz
lwn-47d8696b95f7397fe7cad2d194d550ffe82efc15.zip
sched/cache: Assign preferred LLC ID to processes
With cache-aware scheduling enabled, each task is assigned a preferred LLC ID. This allows quick identification of the LLC domain where the task prefers to run, similar to numa_preferred_nid in NUMA balancing. Co-developed-by: Chen Yu <yu.c.chen@intel.com> 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/f2ceecba5858680349ad4ce9303a2121f0bb7272.1775065312.git.tim.c.chen@linux.intel.com
Diffstat (limited to 'init')
-rw-r--r--init/init_task.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/init/init_task.c b/init/init_task.c
index b5f48ebdc2b6..5d90db4ff1f8 100644
--- a/init/init_task.c
+++ b/init/init_task.c
@@ -215,6 +215,9 @@ struct task_struct init_task __aligned(L1_CACHE_BYTES) = {
.numa_group = NULL,
.numa_faults = NULL,
#endif
+#ifdef CONFIG_SCHED_CACHE
+ .preferred_llc = -1,
+#endif
#if defined(CONFIG_KASAN_GENERIC) || defined(CONFIG_KASAN_SW_TAGS)
.kasan_depth = 1,
#endif