]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched/cache: Respect LLC preference in task migration and detach
authorTim Chen <tim.c.chen@linux.intel.com>
Wed, 1 Apr 2026 21:52:27 +0000 (14:52 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 9 Apr 2026 13:49:51 +0000 (15:49 +0200)
commit5b1d5e6db20a6c64ffb95d04578db8c4b0228eea
tree407a2e137427d698a1d73a62adf2881bd73d2c10
parent714059f79ff0ba976cb75360064583c78bbc6f8e
sched/cache: Respect LLC preference in task migration and detach

During load balancing, make can_migrate_task()
consider a task's LLC preference.
Prevent a task from being moved out of its preferred LLC.

During the regular load balancing, if
the task cannot be migrated due to LLC locality, the
nr_balance_failed also should not be increased.

Suggested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Suggested-by: K Prateek Nayak <kprateek.nayak@amd.com>
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/53da65f3d59de31e1a1dc59a4093d8dd9d4dc206.1775065312.git.tim.c.chen@linux.intel.com
kernel/sched/fair.c
kernel/sched/sched.h