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

Skip to content
Commit 3f33df2b authored by Connor O'Brien's avatar Connor O'Brien
Browse files

ANDROID: cpufreq: times: don't copy invalid freqs from freq table



Invalid frequency checks are a bottleneck in reading
/proc/uid_time_in_state, but there's no reason to include invalid
frequencies in our local copies of frequency tables. Revise
cpufreq_times_create_policy() to only copy valid frequencies, and
eliminate all the checks this change makes unnecessary.

Bug: 111216804
Test: cat /proc/uid_time_in_state & confirm values & format are sane
Test: /proc/uid_time_in_state read times reduced by ~40%
Change-Id: Ib71f002c9dddb8458ba088d73ba61b49deb72b1c
Signed-off-by: default avatarConnor O'Brien <connoro@google.com>
parent c3983c91
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