From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rich Townsend Subject: Sleep() method in AML Date: Wed, 26 Jan 2005 15:13:38 -0500 Message-ID: <41F7F9F2.4000501@bartol.udel.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org 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