]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - arch/powerpc/include/asm/sparsemem.h
UBUNTU: Ubuntu-5.15.0-39.42
[mirror_ubuntu-jammy-kernel.git] / arch / powerpc / include / asm / sparsemem.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1fc8b4ef
DG
2#ifndef _ASM_POWERPC_SPARSEMEM_H
3#define _ASM_POWERPC_SPARSEMEM_H 1
88ced031 4#ifdef __KERNEL__
145e6642
AW
5
6#ifdef CONFIG_SPARSEMEM
7/*
8 * SECTION_SIZE_BITS 2^N: how big each section will be
145e6642
AW
9 * MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space
10 */
11#define SECTION_SIZE_BITS 24
145e6642 12
db7f37de
TB
13#endif /* CONFIG_SPARSEMEM */
14
54b79248 15#ifdef CONFIG_MEMORY_HOTPLUG
52db9b44 16extern int remove_section_mapping(unsigned long start, unsigned long end);
a927bd6b
DW
17extern int memory_add_physaddr_to_nid(u64 start);
18#define memory_add_physaddr_to_nid memory_add_physaddr_to_nid
36b390fd 19
237a0989
MK
20#ifdef CONFIG_NUMA
21extern int hot_add_scn_to_nid(unsigned long scn_addr);
22#else
23static inline int hot_add_scn_to_nid(unsigned long scn_addr)
24{
25 return 0;
26}
27#endif /* CONFIG_NUMA */
54b79248 28#endif /* CONFIG_MEMORY_HOTPLUG */
88ced031 29#endif /* __KERNEL__ */
1fc8b4ef 30#endif /* _ASM_POWERPC_SPARSEMEM_H */