public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Sleep() method in AML
@ 2005-01-26 20:13 Rich Townsend
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Townsend @ 2005-01-26 20:13 UTC (permalink / raw)
  To: Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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

^ permalink raw reply	[flat|nested] 2+ messages in thread
* RE: Sleep() method in AML
@ 2005-02-04 11:09 Starikovskiy, Alexey Y
  0 siblings, 0 replies; 2+ messages in thread
From: Starikovskiy, Alexey Y @ 2005-02-04 11:09 UTC (permalink / raw)
  To: Rich Townsend, Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi Rich,

Look at drivers/acpi/executer/exsystem.c, acpi_ex_system_do_suspend().

Regards,
	Alex.

>-----Original Message-----
>From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-
>admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Rich Townsend
>Sent: Wednesday, January 26, 2005 11:14 PM
>To: Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>Subject: [ACPI] Sleep() method in AML
>
>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
>_______________________________________________
>Acpi-devel mailing list
>Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>https://lists.sourceforge.net/lists/listinfo/acpi-devel


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-02-04 11:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-26 20:13 Sleep() method in AML Rich Townsend
  -- strict thread matches above, loose matches on Subject: below --
2005-02-04 11:09 Starikovskiy, Alexey Y

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox