thermal/cpufreq: add back msm_cpufreq_get_index function