ACPI / cpuidle: Common callback routine for entering states
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 3 Feb 2015 20:55:11 +0000 (21:55 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 3 Feb 2015 20:55:11 +0000 (21:55 +0100)
commit6491bc0c616969f7ae1fcb30a8823c333e2944c7
tree8f055537c917f4caa8ec9ccc6b764e4224b21418
parentd2cecb3d66e39765f3dec8adfb88c322e709b06d
ACPI / cpuidle: Common callback routine for entering states

Introduce a common ->enter callback routine for the ACPI cpuidle
driver, acpi_idle_enter(), which helps to reduce code complexity,
size and duplication and prevents theoretically possible failues that
an incorrect routine may be run to enter the given idle state due to
a firmware bug (eg. when _CST returns a different set of states for
each processor).

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