summaryrefslogtreecommitdiff
path: root/drivers/devfreq/devfreq_simple_dev.c
diff options
context:
space:
mode:
authorJunjie Wu <junjiew@codeaurora.org>2015-07-08 10:19:34 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:04:21 -0700
commite38e726df9e1fa7601f0dd1fe67c0c4a84756ff3 (patch)
treed8dbd0495b0c4558fd2e1fc4f453d22a88713f20 /drivers/devfreq/devfreq_simple_dev.c
parenta61d19ec530236868ffab97103d0a8df5949e7b4 (diff)
PM / devfreq: governor_cache_hwmon: Fix race in monitor start/stop
Some cache_hwmon devices can have interrupts firing at any time. The interrupt handler would stop devfreq monitor, update its vote and restart the monitor again. This introduces a race if devfreq_supend/resume() or devfreq_interval_update() is called at the same time. Since devfreq_monitor_start() re-initializes the work, it could cause corruption while the work is being used elsewhere. Protect governor monitor start/stops with a new lock. Change-Id: I143aaaea86494b4c617df46e2c521a19b43861d5 Signed-off-by: Junjie Wu <junjiew@codeaurora.org>
Diffstat (limited to 'drivers/devfreq/devfreq_simple_dev.c')
0 files changed, 0 insertions, 0 deletions