Revert "drivers: thermal: msm_thermal: Expose pre_throttled_max variable to sysfs"

This reverts commit ed7d9c778e0d71d01b0e0f4cf10c2657dc415e0c.
drivers: thermal: msm_thermal: Avoid a pre_throttled_max=0 case as much as possible

And add better countermeasures in the rare occasion that pre_throttled_max does equal 0.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
drivers: thermal: msm_thermal: Account for CPU hotplugging

Just because the CPU is hot doesn't mean that both CPUs are online, so don't assume that both CPUs are always online.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
drivers: thermal: msm_thermal: Restore correct frequency for each core after throttling

This kernel allows each CPU core to have a different max frequency set, so restore the correct max frequency for each core after throttling. Before this commit, the thermal driver would save and restore the frequency of one core across all cores.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
drivers: thermal: msm_thermal: Add safety mechanism if temp is reported to be over 1000C

A temp over 1000C is obviously impossible (the SoC would have melted before it could ever detect 1000C) so if a temp over 1000C is reported to the thermal driver then ignore it and poll tsens for the temperature again.

Signed-off-by: Sultanxda <sultanxda@gmail.com>