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
Revert "prima: Reapply fixes after upgrade to 3.2.2.2"

This reverts commit f85e35bb8a71a9e7b4d9951784988177381a7863.

Revert "prima: Update to 3.2.2.1_rb1 release"

This reverts commit 5267fdd62c72ebe34d0a360b4efa591fda6ff66d.

The new version has issues with P2P GO negotiation and sessions,
so back off for now

Change-Id: I6469664832643f813e061f5b7f5d20d4dc1a0dd4
(cherry picked from commit fea03440ad7532ebf227cb2ff7633c82e3dddb64)
Merge pull request #41 from AuxXxilium/exp

turbo and wifi fix