Skip to content
Commit e705968d authored by Lin Shengwang's avatar Lin Shengwang Committed by Peter Zijlstra
Browse files

sched/core: Fix comparison in sched_group_cookie_match()

In commit 97886d9d ("sched: Migration changes for core scheduling"),
sched_group_cookie_match() was added to help determine if a cookie
matches the core state.

However, while it iterates the SMT group, it fails to actually use the
RQ for each of the CPUs iterated, use cpu_rq(cpu) instead of rq to fix
things.

Fixes: 97886d9d

 ("sched: Migration changes for core scheduling")
Signed-off-by: default avatarLin Shengwang <linshengwang1@huawei.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20221008022709.642-1-linshengwang1@huawei.com
parent 9abf2313
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment