devfreq: backport from CAF kk_3.5_rb2.10

Idea is taken here -
https://github.com/mrg666/android_kernel_mako/commit/7a284fcf4833525ef1d7029fd01c684104bbfc7d