summaryrefslogtreecommitdiff
path: root/Documentation/cpu-freq
diff options
context:
space:
mode:
authorLianwei Wang <a22439@motorola.com>2013-01-07 14:15:51 +0800
committerJohn Stultz <john.stultz@linaro.org>2016-02-16 13:52:52 -0800
commit939e7f1aa6120c60efd45908abfc9cc73850629e (patch)
treeecb45356e970e6fa0439e76a4c69c9a6610f9596 /Documentation/cpu-freq
parentc7ad1e1b900f63c175f16b503755402c48fef0c6 (diff)
cpufreq: interactive: fix race on governor start/stop
There is race condition when both two cpu do CPUFREQ_GOV_STOP and one cpu do CPUFREQ_GOV_START soon. The sysfs_remove_group is not done yet on one cpu, but sysfs_create_group is called on another cpu, which cause governor start failed and then kernel panic in timer callback because the policy and cpu mask are all kfree in cpufreq driver. Replace atomic with mutex to lock the whole START/STOP sequence. Change-Id: I3762b3d44315ae021b8275aca84f5ea9147cc540 Signed-off-by: Lianwei Wang <a22439@motorola.com>
Diffstat (limited to 'Documentation/cpu-freq')
0 files changed, 0 insertions, 0 deletions