[PATCH 5.15 005/189] cpuidle: PSCI: Move the `has_lpi` check to the beginning of the function