cpufreq: interactive: fix race on cpufreq TRANSITION notifier
authorLianwei Wang <a22439@motorola.com>
Thu, 16 May 2013 04:07:23 +0000 (12:07 +0800)
committerRiham Haidar <rhaidar@nvidia.com>
Fri, 26 Jul 2013 20:50:15 +0000 (13:50 -0700)
commitfb20d6e49a0987169abac109d689de4c9d829fbf
tree7c8db3141bec66faab6ab00ca5cf1410aeb268cd
parent3e6b9d8fb4de1c4353af6e4f69dd00f84f9b98b9
cpufreq: interactive: fix race on cpufreq TRANSITION notifier

The cpufreq TRANSTION notifier callback does not check the
governor_enabled state on affected CPUS, which will case
kernel panic in update_load because the policy object maybe
NULL or invalid when governor_enabled is false.

Bug 1316765

Change-Id: Ie0f1718124f61e2f9b5da57abc6981ada5b83908
Signed-off-by: Lianwei Wang <a22439@motorola.com>
(cherry picked from commit 44011f4524e86ca5a5e90bb941499cbe37a21987)
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/251583
Reviewed-by: Elaine Tam <etam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jay Cheng <jacheng@nvidia.com>
Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com>
Tested-by: Elaine Tam <etam@nvidia.com>
drivers/cpufreq/cpufreq_interactive.c