diff options
author | Tony Luck <tony.luck@intel.com> | 2008-08-01 13:13:32 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2008-08-01 13:21:21 -0400 |
commit | 7f30491ccd28627742e37899453ae20e3da8e18f (patch) | |
tree | 7291c0a26ed3a31acf9542857af3981d278f5de8 /include/asm-ia64/numa.h | |
parent | 94ad374a0751f40d25e22e036c37f7263569d24c (diff) |
[IA64] Move include/asm-ia64 to arch/ia64/include/asm
After moving the the include files there were a few clean-ups:
1) Some files used #include <asm-ia64/xyz.h>, changed to <asm/xyz.h>
2) Some comments alerted maintainers to look at various header files to
make matching updates if certain code were to be changed. Updated these
comments to use the new include paths.
3) Some header files mentioned their own names in initial comments. Just
deleted these self references.
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include/asm-ia64/numa.h')
-rw-r--r-- | include/asm-ia64/numa.h | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/include/asm-ia64/numa.h b/include/asm-ia64/numa.h deleted file mode 100644 index 3499ff57bf42..000000000000 --- a/include/asm-ia64/numa.h +++ /dev/null | |||
@@ -1,82 +0,0 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * This file contains NUMA specific prototypes and definitions. | ||
7 | * | ||
8 | * 2002/08/05 Erich Focht <efocht@ess.nec.de> | ||
9 | * | ||
10 | */ | ||
11 | #ifndef _ASM_IA64_NUMA_H | ||
12 | #define _ASM_IA64_NUMA_H | ||
13 | |||
14 | |||
15 | #ifdef CONFIG_NUMA | ||
16 | |||
17 | #include <linux/cache.h> | ||
18 | #include <linux/cpumask.h> | ||
19 | #include <linux/numa.h> | ||
20 | #include <linux/smp.h> | ||
21 | #include <linux/threads.h> | ||
22 | |||
23 | #include <asm/mmzone.h> | ||
24 | |||
25 | #define NUMA_NO_NODE -1 | ||
26 | |||
27 | extern u16 cpu_to_node_map[NR_CPUS] __cacheline_aligned; | ||
28 | extern cpumask_t node_to_cpu_mask[MAX_NUMNODES] __cacheline_aligned; | ||
29 | extern pg_data_t *pgdat_list[MAX_NUMNODES]; | ||
30 | |||
31 | /* Stuff below this line could be architecture independent */ | ||
32 | |||
33 | extern int num_node_memblks; /* total number of memory chunks */ | ||
34 | |||
35 | /* | ||
36 | * List of node memory chunks. Filled when parsing SRAT table to | ||
37 | * obtain information about memory nodes. | ||
38 | */ | ||
39 | |||
40 | struct node_memblk_s { | ||
41 | unsigned long start_paddr; | ||
42 | unsigned long size; | ||
43 | int nid; /* which logical node contains this chunk? */ | ||
44 | int bank; /* which mem bank on this node */ | ||
45 | }; | ||
46 | |||
47 | struct node_cpuid_s { | ||
48 | u16 phys_id; /* id << 8 | eid */ | ||
49 | int nid; /* logical node containing this CPU */ | ||
50 | }; | ||
51 | |||
52 | extern struct node_memblk_s node_memblk[NR_NODE_MEMBLKS]; | ||
53 | extern struct node_cpuid_s node_cpuid[NR_CPUS]; | ||
54 | |||
55 | /* | ||
56 | * ACPI 2.0 SLIT (System Locality Information Table) | ||
57 | * http://devresource.hp.com/devresource/Docs/TechPapers/IA64/slit.pdf | ||
58 | * | ||
59 | * This is a matrix with "distances" between nodes, they should be | ||
60 | * proportional to the memory access latency ratios. | ||
61 | */ | ||
62 | |||
63 | extern u8 numa_slit[MAX_NUMNODES * MAX_NUMNODES]; | ||
64 | #define node_distance(from,to) (numa_slit[(from) * num_online_nodes() + (to)]) | ||
65 | |||
66 | extern int paddr_to_nid(unsigned long paddr); | ||
67 | |||
68 | #define local_nodeid (cpu_to_node_map[smp_processor_id()]) | ||
69 | |||
70 | extern void map_cpu_to_node(int cpu, int nid); | ||
71 | extern void unmap_cpu_from_node(int cpu, int nid); | ||
72 | |||
73 | |||
74 | #else /* !CONFIG_NUMA */ | ||
75 | #define map_cpu_to_node(cpu, nid) do{}while(0) | ||
76 | #define unmap_cpu_from_node(cpu, nid) do{}while(0) | ||
77 | |||
78 | #define paddr_to_nid(addr) 0 | ||
79 | |||
80 | #endif /* CONFIG_NUMA */ | ||
81 | |||
82 | #endif /* _ASM_IA64_NUMA_H */ | ||