summaryrefslogtreecommitdiff
path: root/kernel/sched/fair.c
diff options
context:
space:
mode:
authorJosh Don <joshdon@google.com>2020-08-04 22:34:13 +0300
committerPeter Zijlstra <peterz@infradead.org>2020-08-26 13:41:57 +0300
commitec73240b1627cddfd7cef018c7fa1c32e64a721e (patch)
treefdcf9003dc2ac365106fcd36c1a0dfff13e32254 /kernel/sched/fair.c
parent5f4a1c4ea44728aa80be21dbf3a0469b5ca81d88 (diff)
downloadlinux-ec73240b1627cddfd7cef018c7fa1c32e64a721e.tar.xz
sched/fair: Ignore cache hotness for SMT migration
SMT siblings share caches, so cache hotness should be irrelevant for cross-sibling migration. Signed-off-by: Josh Don <joshdon@google.com> Proposed-by: Venkatesh Pallipadi <venki@google.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20200804193413.510651-1-joshdon@google.com
Diffstat (limited to 'kernel/sched/fair.c')
-rw-r--r--kernel/sched/fair.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 1a68a0536add..abdb54e2339f 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -7402,6 +7402,10 @@ static int task_hot(struct task_struct *p, struct lb_env *env)
if (unlikely(task_has_idle_policy(p)))
return 0;
+ /* SMT siblings share cache */
+ if (env->sd->flags & SD_SHARE_CPUCAPACITY)
+ return 0;
+
/*
* Buddy candidates are cache hot:
*/