diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-02-02 23:55:42 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-02-02 23:55:42 +0100 |
commit | adcb2623f149abd4d4783ecada543a01e25d1c04 (patch) | |
tree | a89e14ec1a6e68ac8163224a720bb529ab9b0e1c /REPORTING-BUGS | |
parent | 67f592c8f681061d69c621b97a868e679c8a77be (diff) |
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>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions