drivers: cpu_cooling: vote thermal limit on CPUFREQ_INCOMPATIBLE event

The cpu cooling device request thermal frequency limit on
CPUFREQ_ADJUST event notification from cpu freq driver. But
other clients also using same event to their frequency vote.
There is a possible case where thermal vote its limit and later
other client overrides this request. To avoid this, listen for
new CPUFREQ_INCOMPATIBLE event from cpu freq policy notifier
and request thermal limit on this event. It makes sure that
for any policy update thermal vote will be last one and
nobody can override it.

Change-Id: I05b69c079da2b06d2ac61b0631ca387dcda26566
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
1 file changed