mirror of
https://github.com/acpica/acpica/
synced 2025-03-06 14:21:47 +03:00
account for the fact that _PTS, _GTS, _BFS etc do not have to be
present so we should return AE_OK even if they aren't there date 2001.12.11.18.53.00; author agrover; state Exp;
This commit is contained in:
parent
85ab06a367
commit
5f4d1b2941
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Name: hwsleep.c - ACPI Hardware Sleep/Wake Interface
|
||||
* $Revision: 1.26 $
|
||||
* $Revision: 1.27 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -265,13 +265,18 @@ AcpiEnterSleepStatePrep (
|
||||
Arg.Integer.Value = SleepState;
|
||||
|
||||
Status = AcpiEvaluateObject (NULL, "\\_PTS", &ArgList, NULL);
|
||||
if (!ACPI_SUCCESS (Status))
|
||||
if (!ACPI_SUCCESS (Status) && Status != AE_NOT_FOUND))
|
||||
{
|
||||
return_ACPI_STATUS (Status);
|
||||
}
|
||||
|
||||
Status = AcpiEvaluateObject (NULL, "\\_GTS", &ArgList, NULL);
|
||||
return_ACPI_STATUS (Status);
|
||||
if (!ACPI_SUCCESS (Status) && Status != AE_NOT_FOUND))
|
||||
{
|
||||
return_ACPI_STATUS (Status);
|
||||
}
|
||||
|
||||
return_ACPI_STATUS (AE_OK);
|
||||
}
|
||||
|
||||
|
||||
@ -407,13 +412,13 @@ AcpiLeaveSleepState (
|
||||
/* Ignore any errors from these methods */
|
||||
|
||||
Status = AcpiEvaluateObject (NULL, "\\_BFS", &ArgList, NULL);
|
||||
if (!ACPI_SUCCESS (Status))
|
||||
if (!ACPI_SUCCESS (Status) && Status != AE_NOT_FOUND)
|
||||
{
|
||||
REPORT_ERROR (("Method _BFS failed, %s\n", AcpiFormatException (Status)));
|
||||
}
|
||||
|
||||
Status = AcpiEvaluateObject (NULL, "\\_WAK", &ArgList, NULL);
|
||||
if (!ACPI_SUCCESS (Status))
|
||||
if (!ACPI_SUCCESS (Status) && Status != AE_NOT_FOUND)
|
||||
{
|
||||
REPORT_ERROR (("Method _WAK failed, %s\n", AcpiFormatException (Status)));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user