cpufreq: interactive: fix race on cpufreq TRANSITION notifier
authorLianwei Wang <a22439@motorola.com>
Thu, 16 May 2013 04:07:23 +0000 (12:07 +0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:56 +0000 (13:52 -0800)
commit7a5c8bae5cbe4922225071786be8b1809f06ea1f
tree8aff6863483e53d557e3683ab351343cced9e631
parent83720c33a9005029e98a8e730af34d9347c69896
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