ia64/xen-unstable

changeset 12992:65c3287306db

[XEN] Use cpumask macros to update numa node masks.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Wed Dec 13 10:24:20 2006 +0000 (2006-12-13)
parents e080700efa56
children 0946c90c1105
files xen/arch/x86/numa.c xen/include/asm-x86/numa.h
line diff
     1.1 --- a/xen/arch/x86/numa.c	Wed Dec 13 10:23:53 2006 +0000
     1.2 +++ b/xen/arch/x86/numa.c	Wed Dec 13 10:24:20 2006 +0000
     1.3 @@ -214,7 +214,7 @@ void __init numa_initmem_init(unsigned l
     1.4  
     1.5  __cpuinit void numa_add_cpu(int cpu)
     1.6  {
     1.7 -	set_bit(cpu, node_to_cpumask[cpu_to_node(cpu)].bits);
     1.8 +	cpu_set(cpu, node_to_cpumask[cpu_to_node(cpu)]);
     1.9  } 
    1.10  
    1.11  void __cpuinit numa_set_node(int cpu, int node)
     2.1 --- a/xen/include/asm-x86/numa.h	Wed Dec 13 10:23:53 2006 +0000
     2.2 +++ b/xen/include/asm-x86/numa.h	Wed Dec 13 10:24:20 2006 +0000
     2.3 @@ -37,7 +37,7 @@ extern void __init init_cpu_to_node(void
     2.4  
     2.5  static inline void clear_node_cpumask(int cpu)
     2.6  {
     2.7 -	clear_bit(cpu, node_to_cpumask[cpu_to_node(cpu)].bits);
     2.8 +	cpu_clear(cpu, node_to_cpumask[cpu_to_node(cpu)]);
     2.9  }
    2.10  
    2.11  /* Simple perfect hash to map physical addresses to node numbers */