[PATCH 5.17 003/219] cpuidle: PSCI: Move the `has_lpi` check to the beginning of the function