kernel-xen/xen3-fixup-arch-x86

56 lines
2 KiB
Text
Raw Permalink Normal View History

2012-04-14 04:10:33 +04:00
Subject: xen3 x86 build fixes.
From: jbeulich@novell.com
Patch-mainline: obsolete
--- head-2010-01-18.orig/arch/x86/include/asm/topology.h 2010-01-18 15:20:21.000000000 +0100
+++ head-2010-01-18/arch/x86/include/asm/topology.h 2009-10-15 11:04:35.000000000 +0200
@@ -30,7 +30,7 @@
# define ENABLE_TOPO_DEFINES
# endif
#else
-# ifdef CONFIG_SMP
+# if defined(CONFIG_SMP) && !defined(CONFIG_XEN)
# define ENABLE_TOPO_DEFINES
# endif
#endif
--- head-2010-01-18.orig/arch/x86/kernel/cpu/intel_cacheinfo.c 2010-01-18 15:20:21.000000000 +0100
+++ head-2010-01-18/arch/x86/kernel/cpu/intel_cacheinfo.c 2010-01-18 16:16:46.000000000 +0100
@@ -502,7 +502,7 @@ unsigned int __cpuinit init_intel_cachei
static DEFINE_PER_CPU(struct _cpuid4_info *, cpuid4_info);
#define CPUID4_INFO_IDX(x, y) (&((per_cpu(cpuid4_info, x))[y]))
-#ifdef CONFIG_SMP
+#if defined(CONFIG_SMP) && !defined(CONFIG_XEN)
static void __cpuinit cache_shared_cpu_map_setup(unsigned int cpu, int index)
{
struct _cpuid4_info *this_leaf, *sibling_leaf;
--- head-2010-01-18.orig/arch/x86/power/Makefile 2010-01-18 15:20:21.000000000 +0100
+++ head-2010-01-18/arch/x86/power/Makefile 2009-10-12 15:43:36.000000000 +0200
@@ -5,3 +5,5 @@ CFLAGS_cpu.o := $(nostackp)
obj-$(CONFIG_PM_SLEEP) += cpu.o
obj-$(CONFIG_HIBERNATION) += hibernate_$(BITS).o hibernate_asm_$(BITS).o
+
+disabled-obj-$(CONFIG_XEN) := cpu.o
--- head-2010-01-18.orig/arch/x86/power/cpu.c 2009-12-04 10:44:45.000000000 +0100
+++ head-2010-01-18/arch/x86/power/cpu.c 2009-10-12 15:43:36.000000000 +0200
@@ -125,7 +125,6 @@ static void do_fpu_end(void)
static void fix_processor_context(void)
{
-#ifndef CONFIG_X86_NO_TSS
int cpu = smp_processor_id();
struct tss_struct *t = &per_cpu(init_tss, cpu);
@@ -138,10 +137,7 @@ static void fix_processor_context(void)
#ifdef CONFIG_X86_64
get_cpu_gdt_table(cpu)[GDT_ENTRY_TSS].type = 9;
-#endif
-#endif
-#ifdef CONFIG_X86_64
syscall_init(); /* This sets MSR_*STAR and related */
#endif
load_TR_desc(); /* This does ltr */