[PATCH 5.10 052/317] cpufreq: Reorganize checks in cpufreq_offline()