summaryrefslogtreecommitdiffstats
path: root/mm/nommu.c
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2013-09-24 11:05:16 -0700
committerZhang Rui <rui.zhang@intel.com>2013-09-25 21:29:39 +0800
commit7bed1b3caaedd5918f0820b29f3b7a2ddc812922 (patch)
tree76697396d523375a3a3b5ed30989f8fd6ea671d5 /mm/nommu.c
parent22356f447ceb8d97a4885792e7d9e4607f712e1b (diff)
downloadblackbird-op-linux-7bed1b3caaedd5918f0820b29f3b7a2ddc812922.tar.gz
blackbird-op-linux-7bed1b3caaedd5918f0820b29f3b7a2ddc812922.zip
Thermal: x86_pkg_temp: change spin lock
x86_pkg_temp receives thermal notifications via a callback from a therm_throt driver, where thermal interrupts are processed. This callback is pkg_temp_thermal_platform_thermal_notify. Here to avoid multiple interrupts from cores in a package, we disable the source and also set a variable to avoid scheduling delayed work function. This variable is protected via spin_lock_irqsave. On one buggy platform, we still receiving interrupts even if the source is disabled. This can cause deadlock/lockdep warning, when interrupt is generated while under spinlock in work function. Change spin_lock to spin_lock_irqsave and spin_unlock to spin_unlock_irqrestore as the data it is trying to protect can also be modified in a notification call called from interrupt handler. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'mm/nommu.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud