Re: [PATCH] x86: Factor out common CPU initialization code

From: Boris Ostrovsky
Date: Tue Mar 31 2015 - 12:43:02 EST


On 03/31/2015 11:55 AM, Ingo Molnar wrote:

* Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx> wrote:

Some of x86 bare-metal and Xen CPU initialization code is common between the two
and therefore can be factored out to avoid code duplication.

As a side effect, doing so will also extend the fix provided by commit
a7fcf28d431e ("x86/asm/entry: Replace this_cpu_sp0() with current_top_of_stack()
to x86_32") to 32-bit Xen PV guests.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
---
arch/x86/include/asm/smp.h | 1 +
arch/x86/kernel/smpboot.c | 39 +++++++++++++++++++++++----------------
arch/x86/xen/smp.c | 14 +-------------
3 files changed, 25 insertions(+), 29 deletions(-)

This does not apply to the latest x86 tree (tip:master).

Thanks,

Ingo



Yes, I was somewhat out-of-date, sorry. Let me re-test this and submit v2.

-boris
--
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/