]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ACPI / cpuidle: Clean up fallback to C1 checks
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 2 Feb 2015 22:55:42 +0000 (23:55 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 2 Feb 2015 22:55:42 +0000 (23:55 +0100)
commitadcb2623f149abd4d4783ecada543a01e25d1c04
treea89e14ec1a6e68ac8163224a720bb529ab9b0e1c
parent67f592c8f681061d69c621b97a868e679c8a77be
ACPI / cpuidle: Clean up fallback to C1 checks

acpi_idle_enter_simple() and acpi_idle_enter_bm() both check
if C2/C3 type entry is supported on MP in the same way, so move
those checks to a separate function and call it from both
places (and it doesn't need to check if the state type is not
C1, because the functions in question won't be called otherwise).

While at it, use IS_ENABLED() for the CONFIG_HOTPLUG_CPU check.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/processor_idle.c