aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-wrapper.py
diff options
context:
space:
mode:
authorRohit Gupta <rohgup@codeaurora.org>2013-07-31 15:33:24 -0700
committerJunjie Wu <junjiew@codeaurora.org>2014-01-13 15:43:17 -0800
commit61c9b7b970b6a694feace2535e60e0dc76769cc5 (patch)
tree38a9353576527e1238d827e7170ea3fa8ea06786 /scripts/gcc-wrapper.py
parent416e5ce5f951acc200ef07e091d2c3545bc2460d (diff)
cpufreq: ondemand: Fix update_sampling_rate race with hotplug
update_sampling_rate has a for loop which goes through each online cpu and possibly queue up the ondemand work for them. But while doing this it doesnt take any hotplug lock which could potentially cause a race condition where ondemand work is queued after the hotplug code (which sets the policy to NULL) in the governor has cancelled any pending work. This could cause a crash while trying to access the NULL policy in dbs_check_cpu. Protecting the for_each_online_cpu loop with get_online_cpus() and put_online_cpus(). Change-Id: Ia3f43ca7e4bed542834ab03ca1191d728f13311c Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
Diffstat (limited to 'scripts/gcc-wrapper.py')
0 files changed, 0 insertions, 0 deletions