From: "Dan Upton" <upton.dan.linux@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: accessing core temp sensors in the kernel
Date: Fri, 15 Feb 2008 16:12:40 -0500 [thread overview]
Message-ID: <ba7d8f720802151312o643bae66p485287bc444103e9@mail.gmail.com> (raw)
I'm trying to do some work on thermally-aware scheduling, specifically
using the coretemp module to access core temperature sensors on the
Intel Core2 platform. I know how to access them from user mode,
reading files from sysfs, but clearly that's not the way to do it in
the kernel. Specifically, I'm not sure how, in the scheduler, to get
copies of the appropriate device structures to call
static struct coretemp_data *coretemp_update_device(struct device *dev)
(in hwmon/coretemp.c).
Can anybody give me pointers where to get started?
Thanks,
-dan
next reply other threads:[~2008-02-15 21:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-15 21:12 Dan Upton [this message]
2008-02-18 12:59 ` Andrew Morton
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=ba7d8f720802151312o643bae66p485287bc444103e9@mail.gmail.com \
--to=upton.dan.linux@gmail.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®