From: Arnd Bergmann <arnd@arndb.de>
To: linuxppc-dev@ozlabs.org, jyoung5@us.ibm.com
Cc: kvm-ppc-devel@lists.sourceforge.net, Jimi Xenidis <jimix@pobox.com>
Subject: Re: [kvm-ppc-devel] [PATCH] [v2] Add idle wait support for 44x
Date: Tue, 08 Apr 2008 02:21:44 +0000 [thread overview]
Message-ID: <200804080421.45447.arnd@arndb.de> (raw)
In-Reply-To: <1207323761.6634.6.camel@thinkpadL>
On Friday 04 April 2008, Jerone Young wrote:
> > > +int __init ppc44x_idle_init(void)
> > > +{
> > > + void *func = modes[current_mode].entry;
> > > + struct device_node *node;
> > > +
> > > + node = of_find_node_by_path("/hypervisor");
> > > + if (node) {
> > > + /* if we find /hypervisor node is in device tree,
> > > + set idle mode to wait */
> > > + func = &ppc44x_idle; /* wait */
> > > + of_node_put(node);
> > > + }
> > > +
> > > + ppc_md.power_save = func;
> > > + return 0;
> > > +}
> > > +
> > > +arch_initcall(ppc44x_idle_init);
> >
> > IIRC, this would over-ride the idle_param() below, is that the
> > intended behavior?
>
> Yes. At the moment if it detects a hypervisor in the kernel tree it
> overrides what the command line says.
>
This is unusual behavior. Normally, we try to come up with reasonable
defaults and give the user the chance to override it.
Arnd <><
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
kvm-ppc-devel mailing list
kvm-ppc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel
WARNING: multiple messages have this Message-ID (diff)
From: Arnd Bergmann <arnd@arndb.de>
To: linuxppc-dev@ozlabs.org, jyoung5@us.ibm.com
Cc: kvm-ppc-devel@lists.sourceforge.net, Jimi Xenidis <jimix@pobox.com>
Subject: Re: [kvm-ppc-devel] [PATCH] [v2] Add idle wait support for 44x platforms
Date: Tue, 8 Apr 2008 04:21:44 +0200 [thread overview]
Message-ID: <200804080421.45447.arnd@arndb.de> (raw)
In-Reply-To: <1207323761.6634.6.camel@thinkpadL>
On Friday 04 April 2008, Jerone Young wrote:
> > > +int __init ppc44x_idle_init(void)
> > > +{
> > > +=A0=A0=A0void *func =3D modes[current_mode].entry;
> > > +=A0=A0=A0struct device_node *node;
> > > +
> > > +=A0=A0=A0node =3D of_find_node_by_path("/hypervisor");
> > > +=A0=A0=A0if (node) {
> > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0/* if we find /hypervisor node is i=
n device tree,
> > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0 set idle mode to wait */
> > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0func =3D &ppc44x_idle; /* wait */
> > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0of_node_put(node);
> > > +=A0=A0=A0}
> > > +
> > > +=A0=A0=A0ppc_md.power_save =3D func;
> > > +=A0=A0=A0return 0;
> > > +}
> > > +
> > > +arch_initcall(ppc44x_idle_init);
> >=20
> > IIRC, this would over-ride the idle_param() below, is that the =A0
> > intended behavior?
>=20
> Yes. At the moment if it detects a hypervisor in the kernel tree it
> overrides what the command line says.
>=20
This is unusual behavior. Normally, we try to come up with reasonable
defaults and give the user the chance to override it.
Arnd <><
next prev parent reply other threads:[~2008-04-08 2:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-04 7:06 [kvm-ppc-devel] [PATCH] [v2] Add idle wait support for 44x platforms Jerone Young
2008-04-04 7:06 ` Jerone Young
2008-04-04 12:36 ` [kvm-ppc-devel] [PATCH] [v2] Add idle wait support for 44x Jimi Xenidis
2008-04-04 12:36 ` [kvm-ppc-devel] [PATCH] [v2] Add idle wait support for 44x platforms Jimi Xenidis
2008-04-04 15:42 ` [kvm-ppc-devel] [PATCH] [v2] Add idle wait support for Jerone Young
2008-04-04 15:42 ` [kvm-ppc-devel] [PATCH] [v2] Add idle wait support for 44x platforms Jerone Young
2008-04-04 15:56 ` [kvm-ppc-devel] Hollis Blanchard
2008-04-04 15:56 ` [kvm-ppc-devel] [PATCH] [v2] Add idle wait support for 44x platforms Hollis Blanchard
2008-04-08 2:21 ` Arnd Bergmann [this message]
2008-04-08 2:21 ` Arnd Bergmann
2008-04-08 2:35 ` [kvm-ppc-devel] [PATCH] [v2] Add idle wait support for 44x Josh Boyer
2008-04-08 2:35 ` [kvm-ppc-devel] [PATCH] [v2] Add idle wait support for 44x platforms Josh Boyer
2008-04-04 18:47 ` [kvm-ppc-devel] [PATCH] [v2] Add idle wait support for 44x Segher Boessenkool
2008-04-04 18:47 ` [kvm-ppc-devel] [PATCH] [v2] Add idle wait support for 44x platforms Segher Boessenkool
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=200804080421.45447.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=jimix@pobox.com \
--cc=jyoung5@us.ibm.com \
--cc=kvm-ppc-devel@lists.sourceforge.net \
--cc=linuxppc-dev@ozlabs.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.