mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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:
parent
7d13205581
commit
d6a77ead21
5 changed files with 14 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue