Message ID | 20200412032123.3896114-11-jiaxun.yang@flygoat.com |
---|---|
State | New |
Headers | show |
Series | [v2,01/11] MIPS: setup: Drop prefill_possible_map | expand |
diff --git a/arch/mips/netlogic/common/smp.c b/arch/mips/netlogic/common/smp.c index 39a300bd6cc2..14bfa8a099cc 100644 --- a/arch/mips/netlogic/common/smp.c +++ b/arch/mips/netlogic/common/smp.c @@ -122,8 +122,8 @@ static void nlm_init_secondary(void) int hwtid; hwtid = hard_smp_processor_id(); - cpu_set_core(¤t_cpu_data, hwtid / NLM_THREADS_PER_CORE); - current_cpu_data.package = nlm_nodeid(); + cpu_set_core(smp_processor_id(), hwtid / NLM_THREADS_PER_CORE); + cpu_set_cluster(smp_processor_id(), nlm_nodeid()); nlm_percpu_init(hwtid); nlm_smp_irq_init(hwtid); }
Use new functions to set core_id & cluster_id. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> --- arch/mips/netlogic/common/smp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)