cpufreq: interactive: fix race on cpufreq TRANSITION notifier
authorLianwei Wang <a22439@motorola.com>
Thu, 16 May 2013 04:07:23 +0000 (12:07 +0800)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 22:46:28 +0000 (15:46 -0700)
commite1fb7646f1092a0e9baa0007983563092f3ab93d
tree15e2dac581951ef10dfe815428a4d1f1ec948dea
parent1dc1499a432260fd9ea4b43726870d31efbf7042
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.

Change-Id: Ie0f1718124f61e2f9b5da57abc6981ada5b83908
Signed-off-by: Lianwei Wang <a22439@motorola.com>
drivers/cpufreq/cpufreq_interactive.c