x86 / ACPI / sleep: Provide registration for acpi_suspend_lowlevel.

Which by default will be x86_acpi_suspend_lowlevel.
This registration allows us to register another callback
if there is a need to use another platform specific callback.

Signed-off-by: Liang Tang <[email protected]>
Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
Tested-by: Ben Guthro <[email protected]>
Acked-by: "H. Peter Anvin" <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
Konrad Rzeszutek Wilk 2013-05-14 17:09:16 +00:00 • committed by Rafael J. Wysocki
commit d6a77ead21
5 changed files with 14 additions and 3 deletions

View file

@ -494,6 +494,8 @@ static int acpi_suspend_enter(suspend_state_t pm_state)
break;
case ACPI_STATE_S3:
if (!acpi_suspend_lowlevel)
return -ENOSYS;
error = acpi_suspend_lowlevel();
if (error)
return error;