[PATCH] [4/9] pasemi: Idle loops

Arnd Bergmann arnd at arndb.de
Sat Feb 3 19:27:49 EST 2007


On Friday 02 February 2007 05:54, Olof Johansson wrote:
> +static void pasemi_idle(void)
> +{
> +       while (1) {
> +               /* XXXOJN oprofile off? */
> +               while (!need_resched())
> +                       modes[current_mode].entry();
> +
> +               /* XXXOJN oprofile on? */
> +               preempt_enable_no_resched();
> +               schedule();
> +               preempt_disable();
> +       }
> +}

Can you do this using a power_save() callback instead of
an idle() callback? We've already moved over practically
all platforms to power_save(), it would be good to
kill off the ppc_md.idle() function as soon as it's
unneeded.

	Arnd <><


More information about the Linuxppc-dev mailing list