public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* how to get acpi info inside the kernel?
@ 2009-03-02  1:41 Lourival Neto
  2009-03-02  2:23 ` Matthew Garrett
  0 siblings, 1 reply; 3+ messages in thread
From: Lourival Neto @ 2009-03-02  1:41 UTC (permalink / raw)
  To: linux-acpi

Hi, folks.

I'm writing a cpufreq governor and I want to use some acpi info, like
temperature, to make decisions. Is there a way to get this info inside
the kernel without use sysfs? Where can I find linux-acpi interface
documentation?

Thank you in advance,
--
Lourival Vieira Neto

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

* Re: how to get acpi info inside the kernel?
  2009-03-02  1:41 how to get acpi info inside the kernel? Lourival Neto
@ 2009-03-02  2:23 ` Matthew Garrett
  2009-03-02  4:20   ` Lourival Neto
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Garrett @ 2009-03-02  2:23 UTC (permalink / raw)
  To: Lourival Neto; +Cc: linux-acpi

On Sun, Mar 01, 2009 at 10:41:48PM -0300, Lourival Neto wrote:

> I'm writing a cpufreq governor and I want to use some acpi info, like
> temperature, to make decisions. Is there a way to get this info inside
> the kernel without use sysfs? Where can I find linux-acpi interface
> documentation?

There isn't one, as such. You can either evaluate the ACPI methods 
yourself or in the case of thermal-related values you can use the 
generic thermal code.

-- 
Matthew Garrett | mjg59@srcf.ucam.org

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

* Re: how to get acpi info inside the kernel?
  2009-03-02  2:23 ` Matthew Garrett
@ 2009-03-02  4:20   ` Lourival Neto
  0 siblings, 0 replies; 3+ messages in thread
From: Lourival Neto @ 2009-03-02  4:20 UTC (permalink / raw)
  To: linux-acpi

> There isn't one, as such. You can either evaluate the ACPI methods
> yourself or in the case of thermal-related values you can use the
> generic thermal code.

How? Is there a how-to or some documentation?

Sorry, but I'm very newbie in ACPI. I've downloaded a few papers, but
I can't find how to evaluate ACPI methods nor how to access generic
thermal code (I only saw static functions on thermal code). I really
dont know where look for..

--
Lourival Vieira Neto

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

end of thread, other threads:[~2009-03-02  4:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-02  1:41 how to get acpi info inside the kernel? Lourival Neto
2009-03-02  2:23 ` Matthew Garrett
2009-03-02  4:20   ` Lourival Neto

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