aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLianwei Wang <a22439@motorola.com>2013-01-07 14:15:51 +0800
committerJohn Stultz <john.stultz@linaro.org>2015-11-19 12:37:49 -0800
commit458e885be3da6d4835e4b3a9c52c57a6510c5b48 (patch)
tree30ea3c77e4542ffeba363159bccff9b9fd240ec1 /Documentation
parent753766309bb36e557d0e4dbba880da2ec2e99d65 (diff)
downloadv4.1-458e885be3da6d4835e4b3a9c52c57a6510c5b48.tar.gz
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')
0 files changed, 0 insertions, 0 deletions