cpufreq: Avoid using global variable total_cpus
authorRuchi Kandoi <kandoiruchi@google.com>
Tue, 21 Oct 2014 20:55:04 +0000 (13:55 -0700)
committerRuchi Kandoi <kandoiruchi@google.com>
Tue, 21 Oct 2014 22:17:36 +0000 (22:17 +0000)
commit13224a7d4e4e4ac6ade52deec32e9f9c28533659
treeef8a1be891fffe4238c528a39f7a99ff3909f481
parent5ffb57932ec09ebc9956a1c74f703ca8389e3a90
cpufreq: Avoid using global variable total_cpus

The change is to compile on kernels where cpufreq stats are compiled as
a module (CONFIG_CPU_FREQ_STAT=m), because total_cpus is not exported for
module use.

Reported-By: Emilio López <elopez93@gmail.com>
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
Change-Id: I4f3c74f0fac5e8d9449655b26bf3b407b0fe4290
drivers/cpufreq/cpufreq_stats.c