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
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
smartmax: update to Omni 8974
cpufreq: smartmax: Move get_cpu_idle_time() to cpufreq.c
cpufreq: cpufreq_smartmax: set global RW writeable for all and fix min_sampling_rate

Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>