summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@chromium.org>2015-02-04 13:54:48 -0800
committerDmitry Shmidt <dimitrysh@google.com>2016-03-31 11:31:09 -0700
commit2ebb4d97e0c9afeaa45c92f6df2d169d25b6db0b (patch)
tree737df67bd2d56d5e10a69548a198f3e8360424ab /scripts/objdiff
parente7d40d2bf8b2991f051734dd45a95385644f8147 (diff)
cpufreq: interactive: fix policy locking
cpufreq_interactive_speedchange_task() is running as a separate kernel thread and is calling __cpufreq_driver_target(), which requires callers to hold policy->rwsem for writing to prevent racing with other parts of the kernel trying to adjust the frequency, for example kernel thermal throttling. Let's change the code to take policy->rwsem and while at it refactor the code a bit. This was originally 2 changes reviewed at: https://chromium-review.googlesource.com/246273 https://chromium-review.googlesource.com/256120 Change-Id: Icc2d97c6c1b929acd2ee32e8c81d81fd2af778ab Signed-off-by: Dmitry Torokhov <dtor@chromium.org> Reviewed-by: Dylan Reid <dgreid@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Dmitry Torokhov <dtor@google.com>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions