• Erich Focht's avatar
    [PATCH] ia64: 2.5.44 NUMA fixups · b3dc1acc
    Erich Focht authored
    Dear David,
    
    please find attached two patches for the latest 2.5.44-ia64. They fix
    some problems and simplify things a bit.
    
    remove_nodeid-2.5.44.patch:
    This comes from Kimi. In 2.5.44 we suddenly had two definitions for
    numa_node_id(), one was IA64 specific (local_cpu_data->nodeid) while
    the other one is now platform independent:
    __cpu_to_node(smp_processor_id()). After some discussions we decided
    to remove the nodeid from the local_cpu_data and keep the definition of
    all other platforms. With using the cpu_to_node_map[] we are also
    faster when doing multiple lookups, as all node ids come in a single
    cache line (which is not bounced around, as it's content is only
    read).
    
    
    ia64_topology_fixup-2.5.44.patch:
    I'm following here the latest fixup for i386 from Matthew Dobson. The
    __node_to_cpu_mask() macro now accesses an array which is initialized
    after the ACPI CPU discovery. It also simplifies
    __node_to_first_cpu(). A compiler warning has been fixed, too.
    
    
    Please apply these to your kernel tree.
    b3dc1acc
numa.h 1.76 KB