Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33eabee8 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

sched: qhmp: fix hmp_capable detection bug in small task CPU selection



The cpumask_full() returns true only if NR_CPUS bits are set in the
in the bitmask. If NR_CPUS is defined to a value greater than the
number of possible CPUs, hmp_capable returns true even for a SMP
system.

If hmp_capable returns true, the higher capacity cluster CPUs (i.e
all CPUs in a SMP system) are cleared from the initial search for
a mostly_idle CPU. As this search is not successful, the least
busy CPU including an idle CPU is returned while a mostly_idle CPU
is available.  This is resulting in power regression. Fix the
hmp_capable detection by comparing the mpc_mask and cpu_possible_mask
directly.

CRs-Fixed: 993166
Change-Id: Ic046ea300b3fe118df6bd98e54d088979fd90931
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 80f8814a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment