cpufreq: ondemand: backport from CAF msm-3.4
this updates the code and fixes the compilation errors of
unused ondemand.