thermal: cpu_cooling: Use cpufreq_for_each_valid_entry macro for iteration