Skip to contentSkip to conversation

Sleep() method in AML

DISCUSSION Rich Townsend 1 participant 1 message Jan 26, 2005 ACPI

lore
Share & tools
lore
#0 lore raw

How does the current Linux implementation of the AML interpreter treat the Sleep() method? According to the ACPI spec, this method should relinquish the processor, so I would anticipate some form of mapping to the kernel msleep() function. However, to what extent is this true?

Does Sleep() actually permit other tasks to be scheduled, or does the AML interpreter just go into some form of delay loop for the required time? I ask because I'm hacking together some Smart Battery stuff in the DSDT, and the code uses a lot of Sleep() calls (to implement polling of the embedded controller). I was hoping that these calls would mean that the polling doesn't have much of an impact on the rest of the system; but I find I'm losing keypresses etc. during the execution of the code containing the Sleep() references. Any suggestions regarding how to fix this problem?

cheers,

Rich

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl