[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86: Remove broken and unnecessary numa code from smpboot.c.
# HG changeset patch # User Keir Fraser <keir@xxxxxxxxxxxxx> # Date 1181495278 -3600 # Node ID 4eb223694d0aa8dc6266621ead1eb590f1aa29cc # Parent 608ddb14259b193826685c4deb22b63d9131376c x86: Remove broken and unnecessary numa code from smpboot.c. This was trampling on random memory when node==NUMA_NO_NODE. Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> --- xen/arch/x86/smpboot.c | 36 ------------------------------------ 1 files changed, 36 deletions(-) diff -r 608ddb14259b -r 4eb223694d0a xen/arch/x86/smpboot.c --- a/xen/arch/x86/smpboot.c Sun Jun 10 17:00:47 2007 +0100 +++ b/xen/arch/x86/smpboot.c Sun Jun 10 18:07:58 2007 +0100 @@ -543,40 +543,6 @@ extern struct { unsigned short ss; } stack_start; -#ifdef CONFIG_NUMA - -/* which logical CPUs are on which nodes */ -cpumask_t node_2_cpu_mask[MAX_NUMNODES] __read_mostly = - { [0 ... MAX_NUMNODES-1] = CPU_MASK_NONE }; -/* which node each logical CPU is on */ -int cpu_2_node[NR_CPUS] __read_mostly = { [0 ... NR_CPUS-1] = 0 }; -EXPORT_SYMBOL(cpu_2_node); - -/* set up a mapping between cpu and node. */ -static inline void map_cpu_to_node(int cpu, int node) -{ - printk("Mapping cpu %d to node %d\n", cpu, node); - cpu_set(cpu, node_2_cpu_mask[node]); - cpu_2_node[cpu] = node; -} - -/* undo a mapping between cpu and node. */ -static inline void unmap_cpu_to_node(int cpu) -{ - int node; - - printk("Unmapping cpu %d from all nodes\n", cpu); - for (node = 0; node < MAX_NUMNODES; node ++) - cpu_clear(cpu, node_2_cpu_mask[node]); - cpu_2_node[cpu] = 0; -} -#else /* !CONFIG_NUMA */ - -#define map_cpu_to_node(cpu, node) ({}) -#define unmap_cpu_to_node(cpu) ({}) - -#endif /* CONFIG_NUMA */ - u8 cpu_2_logical_apicid[NR_CPUS] __read_mostly = { [0 ... NR_CPUS-1] = BAD_APICID }; static void map_cpu_to_logical_apicid(void) @@ -585,13 +551,11 @@ static void map_cpu_to_logical_apicid(vo int apicid = hard_smp_processor_id(); cpu_2_logical_apicid[cpu] = apicid; - map_cpu_to_node(cpu, apicid_to_node(apicid)); } static void unmap_cpu_to_logical_apicid(int cpu) { cpu_2_logical_apicid[cpu] = BAD_APICID; - unmap_cpu_to_node(cpu); } #if APIC_DEBUG _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |