]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: PSCI: Move the `has_lpi` check to the beginning of the function
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 25 Feb 2022 19:06:45 +0000 (13:06 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Mar 2022 19:20:06 +0000 (20:20 +0100)
commit71413db454273f1a048249fac676b600c33d5bf1
tree9f778256bd12023f5014bd7defee6c1c1489c616
parenta4bb3615af56325e357eba8358c36083800642a8
cpuidle: PSCI: Move the `has_lpi` check to the beginning of the function

Currently the first thing checked is whether the PCSI cpu_suspend function
has been initialized.

Another change will be overloading `acpi_processor_ffh_lpi_probe` and
calling it sooner.  So make the `has_lpi` check the first thing checked
to prepare for that change.

Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/arm64/kernel/cpuidle.c