From: "Kenneth Chen" <kenneth.w.chen@intel.com>
To: 'Andrew Morton' <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org
Subject: RE: add lowpower_idle sysctl
Date: Thu, 18 Mar 2004 03:18:12 +0000 [thread overview]
Message-ID: <200403180318.i2I3IDF03166@unix-os.sc.intel.com> (raw)
In-Reply-To: <20040317170436.430acfbe.akpm@osdl.org>
In-Reply-To: <200403180031.i2I0VQF02038@unix-os.sc.intel.com>
>>>>> Andrew Morton on Wednesday, March 17, 2004 5:05 PM
> >
> > On ia64, we need runtime control to manage CPU power state in the
> > idle loop.
>
> Can you expand on this?
If architecture provides a facility for low power state, we would like
to turn that on in the idle loop to conserve power. However, in some
specific situation like for performance, it is desired to be off at
least during that period of time. A runtime control would allow power
state to be managed dynamically to accommodate both.
That's what we are trying to do: to have a sysctl to control whether
CPU goes into low power state or not in the default_idle() loop. In the
generic code, kernel provides a mechanism to set/clear a flag, and in each
arch, we can then test the flag before entering into low power state.
> Does this mean that the admin can select
> different idle-loop algorithms? If so, what alternative algorithms exist?
This patch isn't that fancy, nice feature but maybe next step :-)
> > Logically it means a sysctl entry in /proc/sys/kernel.
> Yes, but the *meanings* of the different values of that sysctl need
> to be defined, and documented. If lowpower_idleB has a totally
> different meaning on different architectures then that's unfortunate
> but understandable. But we should at least enumerate the different
> values and try to get different architectures to honour `42' in the
> same way.
Writing to sysctl should be a bool, reading the value can be number of
module currently disabled low power idle. I think the original intent
is to use ref count for enabling/disabling. (granted, we copied the
code from other arch).
> Needs to be initialised - atomic_t's may have spinlocks inside them or
> anything else.
>
> Needs to be in a header, not in .c
>
> You cannot treat an int* as an atomic_t*!
My monkey work, must be not having enough coffee today :-P
- Ken
next prev parent reply other threads:[~2004-03-18 3:18 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-18 0:31 add lowpower_idle sysctl Kenneth Chen
2004-03-18 1:04 ` Andrew Morton
2004-03-18 3:18 ` Kenneth Chen [this message]
2004-03-18 3:28 ` Andrew Morton
2004-03-18 3:40 ` Zwane Mwaikambo
2004-03-18 9:05 ` Dominik Brodowski
2004-03-18 22:59 ` Todd Poynor
2004-03-19 0:09 ` Andrew Morton
2004-03-19 0:43 ` Zwane Mwaikambo
2004-03-18 18:29 ` Kenneth Chen
2004-03-18 21:59 ` Kenneth Chen
2004-03-18 22:35 ` Andrew Morton
2004-03-24 9:54 ` Pavel Machek
2004-03-23 9:56 ` Pavel Machek
2004-03-25 19:04 ` Chen, Kenneth W
2004-03-25 19:20 ` Chen, Kenneth W
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=200403180318.i2I3IDF03166@unix-os.sc.intel.com \
--to=kenneth.w.chen@intel.com \
--cc=akpm@osdl.org \
--cc=linux-ia64@vger.kernel.org \
--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