drivers: thermal: cpu-cooling: Avoid deadlock
There is a possibility of deadlock when hotplug is triggered
externally. The hotplug path is waiting on core isolation mutex and
simultaneously if thermal does core isolation, it would have acquired
the core isolation lock and will wait on the hotplug lock.
Core isolation lock is used to protect the current mitigation state
variable and it is unnecessary to hold it when trying to do schedule
isolate and unisolate. So reduce the critical section in the cooling
device update path by moving schedule isolation and unisolate calls
out of critical section.
Change-Id: I68c6fe3ce1ac403ec0584e831e3c631a24cc8bc5
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
1 file changed