sched/walt: update the value of active_cpus

Because of online cpu not make sure active, but active
make sure online, so when want to get active_cpus, make
it and cpu_active_mask.

Change-Id: Ie73b85506252edfad1f1258c9e059b0167dfe4a5
Signed-off-by: Tengfei Fan <tengfeif@codeaurora.org>
This commit is contained in:
Tengfei Fan 2021-08-31 14:49:26 +08:00
parent 92278d9c3b
commit 451fe2a7ab

View File

@ -287,7 +287,9 @@ static ssize_t show_need_cpus(const struct cluster_data *state, char *buf)
static ssize_t show_active_cpus(const struct cluster_data *state, char *buf)
{
return scnprintf(buf, PAGE_SIZE, "%u\n", state->active_cpus);
int active_cpus = get_active_cpu_count(state);
return scnprintf(buf, PAGE_SIZE, "%u\n", active_cpus);
}
static unsigned int cluster_paused_cpus(const struct cluster_data *cluster)