From: Josh Boyer Date: Tue, 08 Apr 2008 02:35:58 +0000 Subject: Re: [kvm-ppc-devel] [PATCH] [v2] Add idle wait support for 44x Message-Id: <20080407213558.786910bc@zod.rchland.ibm.com> List-Id: References: <835D8B13-CF90-4013-A172-8243BF93DE52@pobox.com> <1207323761.6634.6.camel@thinkpadL> <200804080421.45447.arnd@arndb.de> In-Reply-To: <200804080421.45447.arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Arnd Bergmann Cc: kvm-ppc-devel@lists.sourceforge.net, linuxppc-dev@ozlabs.org, Jimi Xenidis On Tue, 8 Apr 2008 04:21:44 +0200 Arnd Bergmann wrote: > 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. The /hypervisor check is going away completely in the next version of the patch. I've spoken to the HW guys and am more comfortable with wait being the default. The spin version should still be an option, specified by the kernel parameter. josh ------------------------------------------------------------------------- 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