Commits
Connor O'Brien committed 073ef866113
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: I506420a6ac5fe8a6c87d01b16ad267b192d43f1d Signed-off-by: Connor O'Brien <connoro@google.com>