Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
numa.c File Reference
#include <linux/topology.h>
#include <linux/module.h>
#include <asm/processor.h>
#include <asm/smp.h>

Go to the source code of this file.

Functions

 EXPORT_SYMBOL (cpu_to_node_map)
 
 EXPORT_SYMBOL (node_to_cpu_mask)
 
void __cpuinit map_cpu_to_node (int cpu, int nid)
 
void __cpuinit unmap_cpu_from_node (int cpu, int nid)
 
void __init build_cpu_to_node_map (void)
 

Variables

u16 cpu_to_node_map[NR_CPUS__cacheline_aligned
 

Function Documentation

void __init build_cpu_to_node_map ( void  )

build_cpu_to_node_map - setup cpu to node and node to cpumask arrays

Build cpu to node mapping and initialize the per node cpu masks using info from the node_cpuid array handed to us by ACPI.

Definition at line 69 of file numa.c.

EXPORT_SYMBOL ( cpu_to_node_map  )
EXPORT_SYMBOL ( node_to_cpu_mask  )
void __cpuinit map_cpu_to_node ( int  cpu,
int  nid 
)

Definition at line 33 of file numa.c.

void __cpuinit unmap_cpu_from_node ( int  cpu,
int  nid 
)

Definition at line 54 of file numa.c.

Variable Documentation

cpumask_t node_to_cpu_mask [MAX_NUMNODES] __cacheline_aligned

Definition at line 27 of file numa.c.