[PATCH] drivers: thermal: properly limit CPU frequency when the
 temperature is too hot: if we throttle too much games will lag so we'll only
 scale down to 1026MHz until the device cools down, then back to 1512MHz
 again. Added other smaller routine changes to make it work properly.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>