Commit ec73240b authored by Josh Don's avatar Josh Don Committed by Peter Zijlstra
Browse files

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: default avatarJosh Don <joshdon@google.com>
Proposed-by: default avatarVenkatesh Pallipadi <venki@google.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200804193413.510651-1-joshdon@google.com
parent 5f4a1c4e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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:
	 */