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