Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2093689ybb; Sat, 11 Apr 2020 20:27:46 -0700 (PDT) X-Google-Smtp-Source: APiQypK9dC3Cygc+Hej5ri/LvoBsHgOjq9BRTi7T+ZcREb80XR/qHXn3xgVRaopPahTKwu6mGgZd X-Received: by 2002:a37:591:: with SMTP id 139mr10761879qkf.281.1586662066476; Sat, 11 Apr 2020 20:27:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586662066; cv=none; d=google.com; s=arc-20160816; b=qSh2S2z++HFHAf/vqBYOZKPNt9B+HfZIaatylsnjuSi7KjAx4NiYYJruItA5N6IW1o +IipnmZep/4F5t76wJl90bNd76Q9shiXAADUED6/oOcpqwMtDE8h4sYtznl8ajX8+yDL 7Gj/Yck1rZ0kJGMYa3fmhOWP+TPZ7w/yAf7CJXkTf/dX7g7uTj0X6wgYI7E2CGmRIHaz u3t3m6dumbDhQ0FQLJmuUWlWWIGXA3gpgbY2ZOlVDuiAvvcJuyqxKphXq8iEwpaYFwZQ QmTTxjjH/SpMRFZGa1MD1vVQDErkFGNrF0z3c9UG8m8+UIE/Gihs6DtSJCpy8Ne+j5Hr xfEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iN1tus2O5s2tUEuwa/L24hfQfgh1QRe9GfCXrJZlBkA=; b=K4fTMFJ0nJc+a+JpsGRECyk9/E/tkXjI2PeW1uGJXAztBAu9KDgjDQaTaA9p17sqL7 N2azVEovXlXg09ymUc1W8ckpmxhoAH9hQEg2oHk7APkP8+yDQNu64on0yJ9/k1sDtGb4 FDiShmRffFXeD4dsi152bwuYZwsWHqL3SVvOS/+dtR2xS47IsZDWfhkoWFvxcEleLX6I 8Ss8aQF3mx3nk4sjdj/ouTZKAdigq6jGB2kCw7eK84FQttMitj5tj7c9ozr0AanNk5y6 9sL679vx8Lm/MYPvYNsBhUhGX04LPBeLKDf9u6eMxMkYU6bsLTbI8l+2I6UV6PE/68oG KSQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=IgPb1a7t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i22si3604579qtq.278.2020.04.11.20.27.31; Sat, 11 Apr 2020 20:27:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=IgPb1a7t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726894AbgDLDXp (ORCPT + 99 others); Sat, 11 Apr 2020 23:23:45 -0400 Received: from vultr.net.flygoat.com ([149.28.68.211]:54538 "EHLO vultr.net.flygoat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726633AbgDLDXo (ORCPT ); Sat, 11 Apr 2020 23:23:44 -0400 Received: from localhost.localdomain (unknown [IPv6:2001:da8:20f:4430:250:56ff:fe9a:7470]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id D063420D06; Sun, 12 Apr 2020 03:23:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1586661825; bh=+ULjUjhxhZgjrZLr4QNtGZOFHPRv0/ugDHj7sJtG6ok=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IgPb1a7tm6ww/8vati/ROFgNz7SQz3VN6PgwecuxJkT6vs0HDCMJdlkT0RBLeVokx 2joNcS8j+QpHiUorg8HWbEdKelKzPEzZczVh+zBGFzFfnTOHwHYkcqYjAfENNu0qq7 Ijn+vaXYAYXdmK5JLyMocByYVGcrnBn1AYAt9EEGlr3eeLpytJBkE9yEB6ATWWNMDy Uf7KUCgW1VWGjFOhoK53PEhOKmfZF24c1JChQaXxkHzsglT0lOkqPe83gSUSzkQ/xC mshHe+5FCm9uiYgFx6/BKC6VfVyB3k22rXDxHyClrl+DDusDRoHYGc/5SZziceNLCI g9Sd7Hi1PFu0w== From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: dietmar.eggemann@arm.com, Jiaxun Yang , Thomas Bogendoerfer , Huacai Chen , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Florian Fainelli , Robert Richter , Sudeep Holla , Greg Kroah-Hartman , "Rafael J. Wysocki" , Daniel Lezcano , Thomas Gleixner , Jason Cooper , Marc Zyngier , Paul Burton , Allison Randal , Enrico Weigelt , Kate Stewart , Vladimir Kondratiev , Alexios Zavras , Paul Cercueil , Zhou Yanjie , =?UTF-8?q?=E5=91=A8=E7=90=B0=E6=9D=B0=20=28Zhou=20Yanjie=29?= , YunQiang Su , Arnd Bergmann , Serge Semin , Matt Redfearn , Richard Fontana , Steve Winslow , afzal mohammed , Peter Xu , Mike Rapoport , Kamal Dasu , Oleksij Rempel , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, oprofile-list@lists.sf.net, linux-pm@vger.kernel.org Subject: [PATCH v2 01/11] MIPS: setup: Drop prefill_possible_map Date: Sun, 12 Apr 2020 11:20:31 +0800 Message-Id: <20200412032123.3896114-2-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200412032123.3896114-1-jiaxun.yang@flygoat.com> References: <20200412032123.3896114-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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