]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
x86, summit: consolidate code, fix
authorIngo Molnar <mingo@elte.hu>
Thu, 29 Jan 2009 10:29:22 +0000 (11:29 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 29 Jan 2009 13:16:41 +0000 (14:16 +0100)
Build fix for !NUMA Summit.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/Makefile
arch/x86/kernel/summit_32.c

index 37fa30bada17e980abf3371dadde2a03bf8e448f..a382ca6f6a173e82a4e2e8ddafad435ba66fc73f 100644 (file)
@@ -73,7 +73,7 @@ obj-$(CONFIG_KEXEC)           += relocate_kernel_$(BITS).o crash.o
 obj-$(CONFIG_CRASH_DUMP)       += crash_dump_$(BITS).o
 obj-$(CONFIG_X86_NUMAQ)                += numaq_32.o
 obj-$(CONFIG_X86_ES7000)       += es7000_32.o
-obj-$(CONFIG_X86_SUMMIT_NUMA)  += summit_32.o
+obj-$(CONFIG_X86_SUMMIT)       += summit_32.o
 obj-y                          += vsmp_64.o
 obj-$(CONFIG_KPROBES)          += kprobes.o
 obj-$(CONFIG_MODULES)          += module_$(BITS).o
index 3b60dd5e57fab62b46b25c97937c821f1f6f6f39..84ff9ebbcc9720371cfddc9c58478cc228f1a58a 100644 (file)
@@ -389,6 +389,7 @@ static void summit_vector_allocation_domain(int cpu, cpumask_t *retmask)
        *retmask = (cpumask_t){ { [0] = APIC_ALL_CPUS, } };
 }
 
+#ifdef CONFIG_X86_SUMMIT_NUMA
 static struct rio_table_hdr *rio_table_hdr __initdata;
 static struct scal_detail   *scal_devs[MAX_NUMNODES] __initdata;
 static struct rio_detail    *rio_devs[MAX_NUMNODES*4] __initdata;
@@ -543,7 +544,7 @@ void __init setup_summit(void)
                        next_wpeg = 0;
        } while (next_wpeg != 0);
 }
-
+#endif
 
 struct genapic apic_summit = {