Re: [RFC/PATCH] idle loop changes

2 messages, 2 authors, 2002-08-01 · open the first message on its own page

Re: [RFC/PATCH] idle loop changes

From: Matt Porter <hidden>
Date: 2002-07-31 21:24:01

On Wed, Jul 31, 2002 at 12:32:00PM -0700, Tom Rini wrote:
The following is based on the final patch that Armin posted a short
while back.  What this does is allow for the power_save() function to be
overridden, but still provide a 'sane' default.  This moves the existing
power_save() function into ppc6xx_idle.c, as after talking with Hollis,
the function won't work as-is on Power3/iSeries (bits have moved or are
non-existant).

I'm not totally sure if it's better to do it this way, or to not provide
a default power_save(), so that if we don't set pm_idle to something, we
just never call power_save() (as opposed to a call, check for a bit &
return).  Comments?
To build it on non-6xx you need to move the powersave_nap declaration
back to idle.c and extern it in ppc6xx_idle.c.  It's required by
sysctl.  Other than that, this will work.

Regards,
--
Matt Porter
porter@cox.net
This is Linux Country. On a quiet night, you can hear Windows reboot.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: [RFC/PATCH] idle loop changes

From: Tom Rini <hidden>
Date: 2002-08-01 00:09:12

On Wed, Jul 31, 2002 at 02:24:01PM -0700, Matt Porter wrote:
On Wed, Jul 31, 2002 at 12:32:00PM -0700, Tom Rini wrote:
quoted
The following is based on the final patch that Armin posted a short
while back.  What this does is allow for the power_save() function to be
overridden, but still provide a 'sane' default.  This moves the existing
power_save() function into ppc6xx_idle.c, as after talking with Hollis,
the function won't work as-is on Power3/iSeries (bits have moved or are
non-existant).

I'm not totally sure if it's better to do it this way, or to not provide
a default power_save(), so that if we don't set pm_idle to something, we
just never call power_save() (as opposed to a call, check for a bit &
return).  Comments?
To build it on non-6xx you need to move the powersave_nap declaration
back to idle.c and extern it in ppc6xx_idle.c.  It's required by
sysctl.  Other than that, this will work.
Bleah.  I'm not sure if the sysctl is wrong or not right now.  IIRC,
powersave_nap is only actually made use of on pmac, and from what I
remember of talking to Ben, it's only really an option on 6xx anyhow.
But good spotting none the less. :)

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help