From 5f4d1b2941a8c7fad0cdd3eb0486436b59c37da8 Mon Sep 17 00:00:00 2001 From: aystarik Date: Wed, 29 Jun 2005 16:57:27 +0000 Subject: [PATCH] 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; --- source/components/hardware/hwsleep.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/source/components/hardware/hwsleep.c b/source/components/hardware/hwsleep.c index 680741044..cdb40f0d3 100644 --- a/source/components/hardware/hwsleep.c +++ b/source/components/hardware/hwsleep.c @@ -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))); }