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:
parent
92278d9c3b
commit
451fe2a7ab
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user