Re: [PATCH] XPC heartbeat timer function must run on CPU 0

From: Simon Horman <horms_at_verge.net.au>
Date: 2007-11-16 04:28:26
On Wed, Nov 14, 2007 at 02:19:15PM -0800, Luck, Tony wrote:
> >> Wouldn't that cpu appear to the new OS instance as cpu0?  If so, then
> >> it should not be an issue.
> >
> > No, I don't believe that it does.
> > I can try and test this theory if it helps.
> > Perhaps my mind is corrupted by x86 thoughts.
> 
> We are talking about logical cpu0 here.  Surely the new instance
> must call whatever cpu it is running on first "0".  E.g. I could
> have used kexec to switch to a UP kernel that only supports cpu0.

I took a look into this, and yes you are right.
Regardless of which physical CPU is used to boot on,
it is always logical cpu 0. So the problem that I
was thinking about doesn't exist. Silly me.

I also noticed that even if it was posisble for logical cpu 0 to
not be present, the patch will still work as the hearbeat
code would just end up being run on the prevailing logical cpu.

So no problem x2 :-)

-- 
Horms, California Edition

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Nov 16 04:28:53 2007

This archive was generated by hypermail 2.1.8 : 2007-11-16 04:29:11 EST