cpufreq: ondemand: kernel NULL pointer dereference at dbs_check_cpu

Function dbs_check_cpu  calls __cpufreq_driver_getavg
With  policy as IN/OUT parameter.
There is possiblity of policy becoming NULL in
 __cpufreq_driver_getavg. Same policy is getting
accessed in the for loop which leads to NULL pointer dereference.
So NULL check is required for the policy

CRs-fixed: 582925
Change-Id: Ib8d8de8d66500430a5aa4c275937640e4f934aa8
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
dts: thermal: tuning parameter for the best user experience
cpufreq: ondemand: updated to the last myfluxi source
cpufreq: makefile: re-enable ondemand governor
cpufreq: interactive: revert to old style, i love the performance

Revert "cpufreq: interactive: Use del_timer/add_timer_on to rearm timers"

This reverts commit 92f4cbe6ebab369aa46b6a7b15568c768fee57c1.

Revert "cpufreq: interactive: Round up timer_rate to match jiffy"

This reverts commit 1b9d523df47810db7b8d2f47c26e0267de2774c3.

Revert "cpufreq: interactive: Reset last evaluated jiffy in idle callback"

This reverts commit 3510a80c0b790aae19a820b2404bb7720a32c46c.

Revert "cpufreq: interactive: Align timer windows for all CPUs"

This reverts commit ba06143568d8d0da2ee1f7cef5a975a79c4c54b3.

Revert "cpufreq: interactive: Squashed cleanup patches"

This reverts commit 51c7db830eb4c62af84b09d174ff2f2911494525.
Revert "msm8974pro: Increase cpu voltags for OC frequencies by 25 mV"

This reverts commit 538d8e147e7590b88803c678b6ebdc5f4ad3a59e.
Revert "printk: Add sys kernel interface to configure linux printk logging"

This reverts commit ce1d2b7c827a444824fdd2d7ebeaa574f9cd0926.
msm_turbo: port to opo [xXx]
msm_turbo: change license from proprietary to GPL V2

Signed-off-by: Paul Reioux <reioux@gmail.com>
msm_turbo: correct the freq
def: add msm_turbo
Merge pull request #43 from AuxXxilium/exps

turbo