Re: [PATCH 1/1] SGI X86 UV: Provide a System Activity Indicatordriver

From: Ingo Molnar
Date: Mon Oct 27 2008 - 07:37:08 EST



* Mike Travis <travis@xxxxxxx> wrote:

> > The idle thread always has pid 0. So if the timer sees
> > current->pid == 0 it interrupted idle.

that's still hacky as it hardcodes the idle == pid-0 assumption.
Please use the idle_cpu() function of the scheduler instead.

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