-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux…
…/kernel/git/tip/linux-2.6-tip * 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (93 commits) x86, tlb, UV: Do small micro-optimization for native_flush_tlb_others() x86-64, NUMA: Don't call numa_set_distanc() for all possible node combinations during emulation x86-64, NUMA: Don't assume phys node 0 is always online in numa_emulation() x86-64, NUMA: Clean up initmem_init() x86-64, NUMA: Fix numa_emulation code with node0 without RAM x86-64, NUMA: Revert NUMA affine page table allocation x86: Work around old gas bug x86-64, NUMA: Better explain numa_distance handling x86-64, NUMA: Fix distance table handling mm: Move early_node_map[] reverse scan helpers under HAVE_MEMBLOCK x86-64, NUMA: Fix size of numa_distance array x86: Rename e820_table_* to pgt_buf_* bootmem: Move __alloc_memory_core_early() to nobootmem.c bootmem: Move contig_page_data definition to bootmem.c/nobootmem.c bootmem: Separate out CONFIG_NO_BOOTMEM code into nobootmem.c x86-64, NUMA: Seperate out numa_alloc_distance() from numa_set_distance() x86-64, NUMA: Add proper function comments to global functions x86-64, NUMA: Move NUMA emulation into numa_emulation.c x86-64, NUMA: Prepare numa_emulation() for moving NUMA emulation into a separate file x86-64, NUMA: Do not scan two times for setup_node_bootmem() ... Fix up conflicts in arch/x86/kernel/smpboot.c
- Loading branch information
Showing
63 changed files
with
2,306 additions
and
1,796 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,57 @@ | ||
#ifndef _ASM_X86_NUMA_H | ||
#define _ASM_X86_NUMA_H | ||
|
||
#include <asm/topology.h> | ||
#include <asm/apicdef.h> | ||
|
||
#ifdef CONFIG_NUMA | ||
|
||
#define NR_NODE_MEMBLKS (MAX_NUMNODES*2) | ||
|
||
/* | ||
* __apicid_to_node[] stores the raw mapping between physical apicid and | ||
* node and is used to initialize cpu_to_node mapping. | ||
* | ||
* The mapping may be overridden by apic->numa_cpu_node() on 32bit and thus | ||
* should be accessed by the accessors - set_apicid_to_node() and | ||
* numa_cpu_node(). | ||
*/ | ||
extern s16 __apicid_to_node[MAX_LOCAL_APIC]; | ||
|
||
static inline void set_apicid_to_node(int apicid, s16 node) | ||
{ | ||
__apicid_to_node[apicid] = node; | ||
} | ||
#else /* CONFIG_NUMA */ | ||
static inline void set_apicid_to_node(int apicid, s16 node) | ||
{ | ||
} | ||
#endif /* CONFIG_NUMA */ | ||
|
||
#ifdef CONFIG_X86_32 | ||
# include "numa_32.h" | ||
#else | ||
# include "numa_64.h" | ||
#endif | ||
|
||
#ifdef CONFIG_NUMA | ||
extern void __cpuinit numa_set_node(int cpu, int node); | ||
extern void __cpuinit numa_clear_node(int cpu); | ||
extern void __init numa_init_array(void); | ||
extern void __init init_cpu_to_node(void); | ||
extern void __cpuinit numa_add_cpu(int cpu); | ||
extern void __cpuinit numa_remove_cpu(int cpu); | ||
#else /* CONFIG_NUMA */ | ||
static inline void numa_set_node(int cpu, int node) { } | ||
static inline void numa_clear_node(int cpu) { } | ||
static inline void numa_init_array(void) { } | ||
static inline void init_cpu_to_node(void) { } | ||
static inline void numa_add_cpu(int cpu) { } | ||
static inline void numa_remove_cpu(int cpu) { } | ||
#endif /* CONFIG_NUMA */ | ||
|
||
#ifdef CONFIG_DEBUG_PER_CPU_MAPS | ||
struct cpumask __cpuinit *debug_cpumask_set_cpu(int cpu, int enable); | ||
#endif | ||
|
||
#endif /* _ASM_X86_NUMA_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.