[PATCH 5.4 474/475] cpuidle: PSCI: Move the `has_lpi` check to the beginning of the function