Skip to content

Commit a9ee6cf

Browse files
rppttorvalds
authored andcommitted
mm: replace CONFIG_NEED_MULTIPLE_NODES with CONFIG_NUMA
After removal of DISCINTIGMEM the NEED_MULTIPLE_NODES and NUMA configuration options are equivalent. Drop CONFIG_NEED_MULTIPLE_NODES and use CONFIG_NUMA instead. Done with $ sed -i 's/CONFIG_NEED_MULTIPLE_NODES/CONFIG_NUMA/' \ $(git grep -wl CONFIG_NEED_MULTIPLE_NODES) $ sed -i 's/NEED_MULTIPLE_NODES/NUMA/' \ $(git grep -wl NEED_MULTIPLE_NODES) with manual tweaks afterwards. [[email protected]: fix arm boot crash] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Mike Rapoport <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Acked-by: David Hildenbrand <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Ivan Kokshaysky <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: Matt Turner <[email protected]> Cc: Richard Henderson <[email protected]> Cc: Vineet Gupta <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 48d9f33 commit a9ee6cf

File tree

36 files changed

+59
-69
lines changed

36 files changed

+59
-69
lines changed

arch/arm64/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ config NODES_SHIFT
10351035
int "Maximum NUMA Nodes (as a power of 2)"
10361036
range 1 10
10371037
default "4"
1038-
depends on NEED_MULTIPLE_NODES
1038+
depends on NUMA
10391039
help
10401040
Specify the maximum number of NUMA Nodes available on the target
10411041
system. Increases memory reserved to accommodate various tables.

arch/ia64/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ config NODES_SHIFT
302302
int "Max num nodes shift(3-10)"
303303
range 3 10
304304
default "10"
305-
depends on NEED_MULTIPLE_NODES
305+
depends on NUMA
306306
help
307307
This option specifies the maximum number of nodes in your SSI system.
308308
MAX_NUMNODES will be 2^(This value).

arch/mips/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2867,7 +2867,7 @@ config RANDOMIZE_BASE_MAX_OFFSET
28672867
config NODES_SHIFT
28682868
int
28692869
default "6"
2870-
depends on NEED_MULTIPLE_NODES
2870+
depends on NUMA
28712871

28722872
config HW_PERF_EVENTS
28732873
bool "Enable hardware performance counter support for perf events"

arch/mips/include/asm/mmzone.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include <asm/page.h>
1010

11-
#ifdef CONFIG_NEED_MULTIPLE_NODES
11+
#ifdef CONFIG_NUMA
1212
# include <mmzone.h>
1313
#endif
1414

arch/mips/include/asm/page.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ static inline int pfn_valid(unsigned long pfn)
239239

240240
/* pfn_valid is defined in linux/mmzone.h */
241241

242-
#elif defined(CONFIG_NEED_MULTIPLE_NODES)
242+
#elif defined(CONFIG_NUMA)
243243

244244
#define pfn_valid(pfn) \
245245
({ \

arch/mips/mm/init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ void maar_init(void)
394394
}
395395
}
396396

397-
#ifndef CONFIG_NEED_MULTIPLE_NODES
397+
#ifndef CONFIG_NUMA
398398
void __init paging_init(void)
399399
{
400400
unsigned long max_zone_pfns[MAX_NR_ZONES];
@@ -473,7 +473,7 @@ void __init mem_init(void)
473473
0x80000000 - 4, KCORE_TEXT);
474474
#endif
475475
}
476-
#endif /* !CONFIG_NEED_MULTIPLE_NODES */
476+
#endif /* !CONFIG_NUMA */
477477

478478
void free_init_pages(const char *what, unsigned long begin, unsigned long end)
479479
{

arch/powerpc/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ config NODES_SHIFT
671671
int
672672
default "8" if PPC64
673673
default "4"
674-
depends on NEED_MULTIPLE_NODES
674+
depends on NUMA
675675

676676
config USE_PERCPU_NUMA_NODE_ID
677677
def_bool y

arch/powerpc/include/asm/mmzone.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* flags field of the struct page
1919
*/
2020

21-
#ifdef CONFIG_NEED_MULTIPLE_NODES
21+
#ifdef CONFIG_NUMA
2222

2323
extern struct pglist_data *node_data[];
2424
/*
@@ -41,7 +41,7 @@ u64 memory_hotplug_max(void);
4141

4242
#else
4343
#define memory_hotplug_max() memblock_end_of_DRAM()
44-
#endif /* CONFIG_NEED_MULTIPLE_NODES */
44+
#endif /* CONFIG_NUMA */
4545
#ifdef CONFIG_FA_DUMP
4646
#define __HAVE_ARCH_RESERVED_KERNEL_PAGES
4747
#endif

arch/powerpc/kernel/setup_64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ static void * __init pcpu_alloc_bootmem(unsigned int cpu, size_t size,
788788
size_t align)
789789
{
790790
const unsigned long goal = __pa(MAX_DMA_ADDRESS);
791-
#ifdef CONFIG_NEED_MULTIPLE_NODES
791+
#ifdef CONFIG_NUMA
792792
int node = early_cpu_to_node(cpu);
793793
void *ptr;
794794

arch/powerpc/kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
10471047
zalloc_cpumask_var_node(&per_cpu(cpu_coregroup_map, cpu),
10481048
GFP_KERNEL, cpu_to_node(cpu));
10491049

1050-
#ifdef CONFIG_NEED_MULTIPLE_NODES
1050+
#ifdef CONFIG_NUMA
10511051
/*
10521052
* numa_node_id() works after this.
10531053
*/

0 commit comments

Comments
 (0)