Between CPUHP_AP_ONLINE_DYN notif for cpufreq and stopper,
schedutil can not see util of hotplug out core.
At this time, there is a task in the core which is hotplug out,
there is a problem that utilization of these tasks is not reflected.
To avoid this, schedutil sees through the online mask to find next_frequency.
Change-Id: I3fc28c605edb184de390727a5f4a3eaa73a8797c
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
unsigned long util = 0, max = 1;
unsigned int j;
- for_each_cpu(j, policy->cpus) {
+ for_each_cpu_and(j, policy->related_cpus, cpu_online_mask) {
struct sugov_cpu *j_sg_cpu = &per_cpu(sugov_cpu, j);
unsigned long j_util, j_max;
s64 delta_ns;