diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-05-14 13:09:16 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-06-19 17:36:30 -0400 |
commit | d6a77ead21b69c395ca6d09a066ededfac601bcc (patch) | |
tree | 15e6fa0166b2359f4cc7de850f62cff4538a6aa3 /drivers/acpi | |
parent | 7d132055814ef17a6c7b69f342244c410a5e000f (diff) |
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 <liang.tang@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tested-by: Ben Guthro <benjamin.guthro@citrix.com>
Acked-by: "H. Peter Anvin" <hpa@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/sleep.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c index 9c1a435d10e6..187ab61889e6 100644 --- a/drivers/acpi/sleep.c +++ b/drivers/acpi/sleep.c | |||
@@ -494,6 +494,8 @@ static int acpi_suspend_enter(suspend_state_t pm_state) | |||
494 | break; | 494 | break; |
495 | 495 | ||
496 | case ACPI_STATE_S3: | 496 | case ACPI_STATE_S3: |
497 | if (!acpi_suspend_lowlevel) | ||
498 | return -ENOSYS; | ||
497 | error = acpi_suspend_lowlevel(); | 499 | error = acpi_suspend_lowlevel(); |
498 | if (error) | 500 | if (error) |
499 | return error; | 501 | return error; |