[PATCH 5.10 004/105] cpuidle: PSCI: Move the `has_lpi` check to the beginning of the function