Re: [PATCH] SN2 user-MMIO CPU migration

Luck, Tony
2006-01-24T21:51:12Z

On Tue, Jan 24, 2006 at 03:12:48PM -0600, Brent Casavant wrote:
> > But I'd also like to see how invasive a "task has migrated" bit in
> > thread_info.flags (as suggested elsewhere in this thread) gets to
> > be.
>
> I'll be happy to do this if you really want. That said, having stared
> at this code enough now, I don't believe it would be a better solution.

You are probably right.

> So, does this look better?

> + .last_cpu = 0, \

How does .last_cpu get propagated to new processes, and what is
it initialized to? Right now it looks like there is an odd
quirk that we'll call platform_switch_from() as each process starts
running for the first time [or is the whole thread_info structure
copied from the parent someplace that I didn't notice].

-Tony