hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/arch/powerpc/include/asm/sparsemem.h
....@@ -9,29 +9,13 @@
99 * MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space
1010 */
1111 #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
2312
2413 #endif /* CONFIG_SPARSEMEM */
2514
2615 #ifdef CONFIG_MEMORY_HOTPLUG
27
-extern int create_section_mapping(unsigned long start, unsigned long end, int nid);
2816 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
3519
3620 #ifdef CONFIG_NUMA
3721 extern int hot_add_scn_to_nid(unsigned long scn_addr);
....@@ -42,6 +26,5 @@
4226 }
4327 #endif /* CONFIG_NUMA */
4428 #endif /* CONFIG_MEMORY_HOTPLUG */
45
-
4629 #endif /* __KERNEL__ */
4730 #endif /* _ASM_POWERPC_SPARSEMEM_H */