cpufreq: Iterate over all the possible cpus to create powerstats.
authorRuchi Kandoi <kandoiruchi@google.com>
Sat, 6 Jun 2015 01:21:56 +0000 (18:21 -0700)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 27 Oct 2015 08:27:25 +0000 (16:27 +0800)
commit9b48fbb68580872b5be9d25a3d47189da6089bdc
tree1920ce2c6cd1db5ffa77d7eb52a5b3db8c4caba3
parentf40cf81b65d1431e358991b06a79da0b0ff1b0b4
cpufreq: Iterate over all the possible cpus to create powerstats.

For architectures which support a single policy for multiple cpus,
powerstats will not be initalized for all the cores. This change will
make sure powerstats is initialized for all the cores.

Also minor changes to increase code readability.

Bug: 21498425
Change-Id: I938f45e92ff6d5371c32c4d0e37274e6de66769c
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
(cherry picked from commit 5862c50d1970886b5b5a57b5b52ecfd6feb95ebd)
drivers/cpufreq/cpufreq_stats.c