Revert "sched/fair: Fix inaccurate tally of ttwu_move_affine"
This reverts commit 3e09b68fc5 which is
commit 39afe5d6fc59237ff7738bf3ede5a8856822d59d upstream.
It breaks the Android kernel abi and if needed, can be brought back in
an abi-safe way in the future.
Bug: 161946584
Change-Id: I09918382e0f8bceb151331e99a40c52c062ba202
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -6242,7 +6242,7 @@ static int wake_affine(struct sched_domain *sd, struct task_struct *p,
|
||||
target = wake_affine_weight(sd, p, this_cpu, prev_cpu, sync);
|
||||
|
||||
schedstat_inc(p->stats.nr_wakeups_affine_attempts);
|
||||
if (target != this_cpu)
|
||||
if (target == nr_cpumask_bits)
|
||||
return prev_cpu;
|
||||
|
||||
schedstat_inc(sd->ttwu_move_affine);
|
||||
|
||||
Reference in New Issue
Block a user