.. | .. |
---|
9 | 9 | * MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space |
---|
10 | 10 | */ |
---|
11 | 11 | #define SECTION_SIZE_BITS 24 |
---|
12 | | -/* |
---|
13 | | - * If we store section details in page->flags we can't increase the MAX_PHYSMEM_BITS |
---|
14 | | - * if we increase SECTIONS_WIDTH we will not store node details in page->flags and |
---|
15 | | - * page_to_nid does a page->section->node lookup |
---|
16 | | - * Hence only increase for VMEMMAP. |
---|
17 | | - */ |
---|
18 | | -#ifdef CONFIG_SPARSEMEM_VMEMMAP |
---|
19 | | -#define MAX_PHYSMEM_BITS 47 |
---|
20 | | -#else |
---|
21 | | -#define MAX_PHYSMEM_BITS 46 |
---|
22 | | -#endif |
---|
23 | 12 | |
---|
24 | 13 | #endif /* CONFIG_SPARSEMEM */ |
---|
25 | 14 | |
---|
26 | 15 | #ifdef CONFIG_MEMORY_HOTPLUG |
---|
27 | | -extern int create_section_mapping(unsigned long start, unsigned long end, int nid); |
---|
28 | 16 | extern int remove_section_mapping(unsigned long start, unsigned long end); |
---|
29 | | - |
---|
30 | | -#ifdef CONFIG_PPC_BOOK3S_64 |
---|
31 | | -extern void resize_hpt_for_hotplug(unsigned long new_mem_size); |
---|
32 | | -#else |
---|
33 | | -static inline void resize_hpt_for_hotplug(unsigned long new_mem_size) { } |
---|
34 | | -#endif |
---|
| 17 | +extern int memory_add_physaddr_to_nid(u64 start); |
---|
| 18 | +#define memory_add_physaddr_to_nid memory_add_physaddr_to_nid |
---|
35 | 19 | |
---|
36 | 20 | #ifdef CONFIG_NUMA |
---|
37 | 21 | extern int hot_add_scn_to_nid(unsigned long scn_addr); |
---|
.. | .. |
---|
42 | 26 | } |
---|
43 | 27 | #endif /* CONFIG_NUMA */ |
---|
44 | 28 | #endif /* CONFIG_MEMORY_HOTPLUG */ |
---|
45 | | - |
---|
46 | 29 | #endif /* __KERNEL__ */ |
---|
47 | 30 | #endif /* _ASM_POWERPC_SPARSEMEM_H */ |
---|