[PATCH v3 2/6] thermal: Add generic cpufreq cooling implementation