Re: [PATCH] i386 add idle notifier

From: Christoph Hellwig
Date: Wed Nov 29 2006 - 12:10:01 EST


On Wed, Nov 29, 2006 at 08:25:40AM -0800, Stephane Eranian wrote:
> Hello,
>
> Here is a patch that adds an idle notifier to the i386 tree.
> The idle notifier functionalities and implementation are
> identical to the x86_64 idle notifier. We use the idle notifier
> in the context of perfmon.
>
> The patch is against Andi Kleen's x86_64-2.6.19-rc6-061128-1.bz2
> kernel. It may apply to other kernels but it needs some updates
> to poll_idle() and default_idle() to work correctly.

Walking through a notifier chain on every single interrupt (including
timer interrupts) seems rather costly. What do you need this for
exactly?

-
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/