Re: x86: clean up smpboot.c's use of udelay+schedule

From: Peter Zijlstra
Date: Tue Jan 31 2012 - 08:02:08 EST


On Tue, 2012-01-31 at 13:53 +0100, Ingo Molnar wrote:
> Wanna give a short TODO list to anyone wanting to work on that?

I paged out most details again, but it goes something like:

- read and understand the current generic code

- and all architecture code, at which point you'll probably boggle
at all the similarities that are all subtly different (there's
about 3 actually different ways in the arch code).

- pick one, preferably one that keeps additional state and doesn't
fully rely on the online bits and pull it into generic code and
provide a small vector of arch specific functions.

- convert all archs over.


Also related:

- figure out why cpu_down needs kstopmachine, I'm not sure it does..
we should be able to tear down a cpu using synchronize_sched() and a
single stop_one_cpu(). (someday when there's time I might actually
try to implement this).
--
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/