[PATCH for 5.4 stable] thermal/drivers/cpu_cooling: Update cpufreq_state only if state has changed