RE: [PATCH] idle using PNI monitor/mwait (take 3)

From: Pallipadi, Venkatesh
Date: Sat Sep 06 2003 - 02:27:24 EST




> -----Original Message-----
> From: Zwane Mwaikambo [mailto:zwane@xxxxxxxxxxxxxxxx]
> On Fri, 5 Sep 2003, Nakajima, Jun wrote:
>
> > + if (!pm_idle) {
> > + pm_idle = mwait_idle;
> > + }
> > + return;
> > + }
> > + pm_idle = default_idle;
>
> You don't have to set that.
>

The idea is to handle smp systems with asymmetric CPUs (if any such system
is built one day :)). We will use mwait, only if all the CPUs support it.
If any CPU doesn't support mwait, then we switch back to default_idle.
Note that pm_idle will be NULL by default.

Thanks,
-Venkatesh
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/