Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
numa.c File Reference
#include <linux/threads.h>
#include <linux/bootmem.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/mmzone.h>
#include <linux/export.h>
#include <linux/nodemask.h>
#include <linux/cpu.h>
#include <linux/notifier.h>
#include <linux/memblock.h>
#include <linux/of.h>
#include <linux/pfn.h>
#include <linux/cpuset.h>
#include <linux/node.h>
#include <asm/sparsemem.h>
#include <asm/prom.h>
#include <asm/smp.h>
#include <asm/firmware.h>
#include <asm/paca.h>
#include <asm/hvcall.h>
#include <asm/setup.h>

Go to the source code of this file.

Data Structures

struct  of_drconf_cell
 
struct  assoc_arrays
 

Macros

#define dbg(args...)   if (numa_debug) { printk(KERN_INFO args); }
 
#define MAX_DISTANCE_REF_POINTS   4
 
#define VEC5_AFFINITY_BYTE   5
 
#define VEC5_AFFINITY   0x80
 
#define DRCONF_MEM_ASSIGNED   0x00000008
 
#define DRCONF_MEM_AI_INVALID   0x00000040
 
#define DRCONF_MEM_RESERVED   0x00000080
 

Functions

 EXPORT_SYMBOL (numa_cpu_lookup_table)
 
 EXPORT_SYMBOL (node_to_cpumask_map)
 
 EXPORT_SYMBOL (node_data)
 
int __node_distance (int a, int b)
 
int of_node_to_nid (struct device_node *device)
 
 EXPORT_SYMBOL_GPL (of_node_to_nid)
 
void __init dump_numa_cpu_topology (void)
 
void __init do_init_bootmem (void)
 
void __init paging_init (void)
 
 early_param ("numa", early_numa)
 

Variables

int numa_cpu_lookup_table [NR_CPUS]
 
cpumask_var_t node_to_cpumask_map [MAX_NUMNODES]
 
struct pglist_datanode_data [MAX_NUMNODES]
 

Macro Definition Documentation

#define dbg (   args...)    if (numa_debug) { printk(KERN_INFO args); }

Definition at line 38 of file numa.c.

#define DRCONF_MEM_AI_INVALID   0x00000040

Definition at line 411 of file numa.c.

#define DRCONF_MEM_ASSIGNED   0x00000008

Definition at line 410 of file numa.c.

#define DRCONF_MEM_RESERVED   0x00000080

Definition at line 412 of file numa.c.

#define MAX_DISTANCE_REF_POINTS   4

Definition at line 52 of file numa.c.

#define VEC5_AFFINITY   0x80
#define VEC5_AFFINITY_BYTE   5

Function Documentation

int __node_distance ( int  a,
int  b 
)

Definition at line 198 of file numa.c.

void __init do_init_bootmem ( void  )

Definition at line 1020 of file numa.c.

void __init dump_numa_cpu_topology ( void  )

Definition at line 827 of file numa.c.

early_param ( "numa"  ,
early_numa   
)
EXPORT_SYMBOL ( numa_cpu_lookup_table  )
EXPORT_SYMBOL ( node_to_cpumask_map  )
EXPORT_SYMBOL ( node_data  )
EXPORT_SYMBOL_GPL ( of_node_to_nid  )
int of_node_to_nid ( struct device_node device)

Definition at line 270 of file numa.c.

void __init paging_init ( void  )

paging_init - setup page tables

paging_init() sets up the page tables for each node of the system and frees the bootmem allocator memory for general use.

Definition at line 1098 of file numa.c.

Variable Documentation

Definition at line 42 of file numa.c.

cpumask_var_t node_to_cpumask_map[MAX_NUMNODES]

Definition at line 41 of file numa.c.

int numa_cpu_lookup_table[NR_CPUS]

Definition at line 40 of file numa.c.