]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 13:20:07 +0000 (15:20 +0200)
commitc819d936a97806e4c7de163c1fb921d95ae2e94b
tree985b73a4cb8dd402a89eb5366decc4cff0f7db0a
parent7cff026fabfb857c2401aefbfcd27599297ac15c
cpuidle: PSCI: Move the `has_lpi` check to the beginning of the function

BugLink: https://bugs.launchpad.net/bugs/1971497
commit 01f6c7338ce267959975da65d86ba34f44d54220 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/arm64/kernel/cpuidle.c