[PATCH 5.4 036/202] cpufreq: Reorganize checks in cpufreq_offline()