Skip to content

Commit

Permalink
executer/exsystem: Warn about sleeps greater than 10 ms
Browse files Browse the repository at this point in the history
Quick boottime is important, so warn about sleeps greater than 10 ms.

Distribution Linux kernels reach initrd in 350 ms, so excessive delays
should be called out. 10 ms is chosen randomly, but three of such delays
would make ten percent of the boottime.
  • Loading branch information
paulmenzel committed Mar 13, 2022
1 parent 05ba545 commit e2d68b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/components/executer/exsystem.c
Expand Up @@ -338,6 +338,12 @@ AcpiExSystemDoSleep (

AcpiExExitInterpreter ();

if (HowLongMs > 10)
{
ACPI_WARNING ((AE_INFO,
"Firmware issue: Excessive delay (%llu ms > 10 ms) in ACPI Control Method", HowLongUs));
}

/*
* For compatibility with other ACPI implementations and to prevent
* accidental deep sleeps, limit the sleep time to something reasonable.
Expand Down

0 comments on commit e2d68b5

Please sign in to comment.