[ERD][RAMEN9610-20347]ANDROID: cpufreq: times: optimize proc files
authorSangkyu Kim <skwith.kim@samsung.com>
Fri, 27 Sep 2019 14:14:53 +0000 (23:14 +0900)
committerrobot <robot@samsung.com>
Mon, 7 Oct 2019 05:06:59 +0000 (14:06 +0900)
commitb3dfcb84f8364ca1f3fcec52a737e6ad3bf6eb85
tree901087887b063a609b3f068d3b14bbfb20dc0269
parent705413a032f9b8b487a79f252e8c7a2f08657111
[ERD][RAMEN9610-20347]ANDROID: cpufreq: times: optimize proc files

The majority of the time spent reading /proc/uid_time_in_state is due
to seq_printf calls. Use the faster seq_put_* variations instead.

Also skip empty hash buckets in uid_seq_next for a further performance
improvement.

Bug: 111216804
Test: Read /proc/uid_time_in_state and confirm output is sane
Test: Compare read times to confirm performance improvement
Change-Id: I9a735a591b0f1d879dba8e1d9dd05bb47e18a9c5
Signed-off-by: Connor O'Brien <connoro@google.com>
drivers/cpufreq/cpufreq_times.c