Messages in this thread | | | Subject | Re: x86: clean up smpboot.c's use of udelay+schedule | From | Peter Zijlstra <> | Date | Tue, 31 Jan 2012 14:01:56 +0100 |
| |
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).
| |