public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Rich Townsend <rhdt-OBnUx95tOyn10jlvfTC4gA@public.gmane.org>
To: Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Sleep() method in AML
Date: Wed, 26 Jan 2005 15:13:38 -0500	[thread overview]
Message-ID: <41F7F9F2.4000501@bartol.udel.edu> (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

             reply	other threads:[~2005-01-26 20:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-26 20:13 Rich Townsend [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-02-04 11:09 Sleep() method in AML Starikovskiy, Alexey Y

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41F7F9F2.4000501@bartol.udel.edu \
    --to=rhdt-obnux95toyn10jlvftc4ga@public.gmane.org \
    --cc=Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox