summaryrefslogtreecommitdiff
path: root/Documentation/cpu-freq
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2012-12-20 15:51:00 -0800
committerNitin Garg <nitin.garg@nxp.com>2016-01-14 11:02:55 -0600
commit92c46fda4711861d9f74de5963e17d423fd69efb (patch)
tree35b65e93e0293068f9acbefe1dbf7c388ad3dcfd /Documentation/cpu-freq
parent2e118d6cff4119be721f7878e5812a40cc52127a (diff)
cpufreq: interactive: fix race on timer restart on governor start
Starting the governor, or restarting on a hotplugged-in CPU, can race with the timer start in idle, triggering a BUG on timer already pending. Start the timer before setting the enable flag, and use enable_sem to protect the sequence (and ensure correct order of the update to the enable flag). Delete any existing timer for safety. Change-Id: Ife77cf9fe099e8fd8543224cbf148c6722c2ffb0 Reported-by: Francisco Franco <francisco.franco@cloudcar.com> Signed-off-by: Todd Poynor <toddpoynor@google.com>
Diffstat (limited to 'Documentation/cpu-freq')
0 files changed, 0 insertions, 0 deletions