diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2023-06-20 16:07:47 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-07-27 08:50:37 +0200 |
commit | 45f739e8fb345cc4352da091602660f94320431f (patch) | |
tree | 8cbd9721c25e9b098dc2ec48b1ab9131d3fea42f /include | |
parent | 6ede0d0f88655a4c6c2f9c2b4174031286a04ef9 (diff) | |
download | linux-stable-45f739e8fb345cc4352da091602660f94320431f.tar.gz linux-stable-45f739e8fb345cc4352da091602660f94320431f.tar.bz2 linux-stable-45f739e8fb345cc4352da091602660f94320431f.zip |
sched/fair: Use recent_used_cpu to test p->cpus_ptr
[ Upstream commit ae2ad293d6be143ad223f5f947cca07bcbe42595 ]
When checking whether a recently used CPU can be a potential idle
candidate, recent_used_cpu should be used to test p->cpus_ptr as
p->recent_used_cpu is not equal to recent_used_cpu and candidate
decision is made based on recent_used_cpu here.
Fixes: 89aafd67f28c ("sched/fair: Use prev instead of new target as recent_used_cpu")
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Phil Auld <pauld@redhat.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Link: https://lore.kernel.org/r/20230620080747.359122-1-linmiaohe@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions