summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Menzel <pmenzel@molgen.mpg.de>2022-02-21 22:50:39 +0100
committerPaul Menzel <pmenzel@molgen.mpg.de>2022-03-13 08:50:59 +0100
commit05ba545ce7859392250b18c10081db25c90ed8d7 (patch)
tree9992d235bc01e5190fcd3e19525f5ade5423e733
parentb69cbef7a83eadb102a1ff6c6f6fc5abce34805a (diff)
downloadacpica-05ba545ce7859392250b18c10081db25c90ed8d7.tar.gz
executer/exsystem: Inform users about ACPI spec violation
Values greater than 100 microseconds violate the ACPI specification, so warn users about it. From ACPI Specification version 6.2 Errata A, 19.6.128 *Stall (Stall for a Short Time)*: > The implementation of Stall is OS-specific, but must not relinquish > control of the processor. Because of this, delays longer than 100 > microseconds must use Sleep instead of Stall.
-rw-r--r--source/components/executer/exsystem.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/components/executer/exsystem.c b/source/components/executer/exsystem.c
index aafef2053..7552de835 100644
--- a/source/components/executer/exsystem.c
+++ b/source/components/executer/exsystem.c
@@ -302,6 +302,11 @@ AcpiExSystemDoStall (
}
else
{
+ if (HowLongUS > 100)
+ {
+ ACPI_WARNING ((AE_INFO,
+ "Time parameter %u us > 100 us violating ACPI spec, please fix the firmware.", HowLongUs));
+ }
AcpiOsStall (HowLongUs);
}