[PATCH OLK-5.10 1/4] cpufreq: Reorganize checks in cpufreq_offline()