[PATCH openEuler-5.10 02/95] cpuidle: PSCI: Move the `has_lpi` check to the beginning of the function