lkml.org 
[lkml]   [2020]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 01/11] MIPS: setup: Drop prefill_possible_map
Date
All the plat_smp_setup are setting up possible cpus in their
platform code. So prefill_possible_map is actually overwriting
platform's setup, which seems unreasonable.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
arch/mips/kernel/setup.c | 20 --------------------
1 file changed, 20 deletions(-)

diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c
index 10bef8f78e7c..8a418783a6bb 100644
--- a/arch/mips/kernel/setup.c
+++ b/arch/mips/kernel/setup.c
@@ -761,25 +761,6 @@ static void __init resource_init(void)
}
}

-#ifdef CONFIG_SMP
-static void __init prefill_possible_map(void)
-{
- int i, possible = num_possible_cpus();
-
- if (possible > nr_cpu_ids)
- possible = nr_cpu_ids;
-
- for (i = 0; i < possible; i++)
- set_cpu_possible(i, true);
- for (; i < NR_CPUS; i++)
- set_cpu_possible(i, false);
-
- nr_cpu_ids = possible;
-}
-#else
-static inline void prefill_possible_map(void) {}
-#endif
-
void __init setup_arch(char **cmdline_p)
{
cpu_probe();
@@ -804,7 +785,6 @@ void __init setup_arch(char **cmdline_p)

resource_init();
plat_smp_setup();
- prefill_possible_map();

cpu_cache_init();
paging_init();
--
2.26.0.rc2
\
 
 \ /
  Last update: 2020-04-12 05:24    [W:0.103 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site