Re: [PATCH] prevent sparc64 from invoking irq handlers on offlineCPUs

From: Paul E. McKenney
Date: Tue Sep 09 2008 - 11:07:31 EST


On Mon, Sep 08, 2008 at 05:17:08PM -0700, David Miller wrote:
> From: "Paul E. McKenney" <paulmck@xxxxxxxxxxxxxxxxxx>
> Date: Wed, 3 Sep 2008 08:42:17 -0700
> > o Timer irqs. Not sure what happens to add_timer() calls from
> > a CPU that is going offline. The hope would be that they get
> > queued to some other CPU?
>
> This case is interesting, and I'm no sure what happens here.

It turns out that there is a timer_cpu_modifier() that invokes
migrate_timers() upon CPU_DEAD or CPU_DEAD_FROZEN. And migrate_timers()
looks like it does what its name says. And I believe that CPU_DEAD
happens after sparc64's local_irq_enable() window, so we should be OK.

Thanx, Paul
--
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/