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

Commit 40d14ffc authored by Junjie Wu's avatar Junjie Wu
Browse files

cpufreq: interactive: Use sched_get_cpus_busy() to query busy time



sched_get_cpus_busy() provides a snapshot of all CPUs' busy time
information for the set of CPUs being queried. This avoids race
condition due to migration when CPU load is queried one by one.

Change-Id: I6afdfa74ff9f3ef616872df4e2c3bb04f6233c3f
Signed-off-by: default avatarJunjie Wu <junjiew@codeaurora.org>
parent eea23b7c
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