cpufreq: qcom: Add support for thermal based configuration

Add logic to decide the SW index based on the thermal configuration.
In the case where thermal crosses beyond the threshold the perf desired
state is set to high temperature index. When the thermal throttle is
removed the perf desired state is reverted back to low temperature index.
The number of core configurations differ between the high and low
temperature index and based on the SW index the cpufreq hw would decide
the final cpu frequency.

Change-Id: I26f1defa90f9ba61dc899748bb0f2e785171b957
Signed-off-by: Taniya Das <tdas@codeaurora.org>
1 file changed