From: Len Brown <lenb@kernel.org>
To: nisha jain <jain61@gmail.com>
Cc: linux-acpi@vger.kernel.org, devel@acpica.org
Subject: Re: [Devel] Regarding ACPI library
Date: Thu, 24 Dec 2009 15:16:51 -0500 (EST) [thread overview]
Message-ID: <alpine.LFD.2.00.0912241507390.4159@localhost.localdomain> (raw)
In-Reply-To: <6b4365880912231733v58fb8b84wf3bc896113328421@mail.gmail.com>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 2093 bytes --]
On Wed, 23 Dec 2009, nisha jain wrote:
> Hi All,
>
> I am working on research related to Power management and control for single and multiprocessors and I came across ACPI standard. I want
> to get all CPU power information (c state and frequency p state information) for different applications and kernel processes running
> into system (with load). I went through user manual of the ACPI and as per my understaning there is some information written by the
> ACPI HW/SW module and ACPI is already a part of most Linux kernels.I went through all the acpi site but there is no sample program to
> show its usage also i have installed the UNIX Format Source Code and Build Environment and UNIX Format Test Suite of the ACPI and
> successfully compiled it. I am not sure how and which acpi APIs needs to be called to get such information and how to install the ACPI
> library...Also I want to control CPU frquency and state not sure how to achieve it using ACPI library?
>
> I am using an environment with Intel Dual Core Tm processor and Ubuntu platform.
Hi Nisha,
ACPI is an interface between the hardware and the OS,
not an interface between the kernel and user-space.
So generally the ACPICA core is hidden inside the kernel
and not directly visible to user-space.
So your question is really about the Linux APIs for
user-space utilities to get to the stuff that is
implemented by ACPI.
On Linux, we endeavor to expose ACPI directly to application layer
only for debugging hooks -- eg the old /proc/acpi/*
and the new /sys/firmware/acpi/*
In general, we try to have generic policy code that doesn't
directly know if ACPI is involved in the underlying implementation.
For example, cpufreq abstracts ACPI P-states, cpuidle
abstracts ACPI C-states, thermal abstracts ACPI thermal & T-states,
power supply abstracts ACPI battery etc.
Note that the powertop application is available in most recent distros
to grab and summarize a lot of what you may be seeking.
It looks in /sys/devices/system/cpu/* for cpufreq and cpuidle info.
cheers,
-Len Brown
Intel Open Source Technology Center
next parent reply other threads:[~2009-12-24 20:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <6b4365880912231733v58fb8b84wf3bc896113328421@mail.gmail.com>
2009-12-24 20:16 ` Len Brown [this message]
[not found] ` <6b4365880912241306y4769ad85mb8e6564587063d14@mail.gmail.com>
2009-12-26 4:03 ` [Devel] Regarding ACPI library Len Brown
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=alpine.LFD.2.00.0912241507390.4159@localhost.localdomain \
--to=lenb@kernel.org \
--cc=devel@acpica.org \
--cc=jain61@gmail.com \
--cc=linux-acpi@vger.kernel.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