Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp533340ybb; Wed, 8 Apr 2020 05:03:06 -0700 (PDT) X-Google-Smtp-Source: APiQypLuoT/Sop/1v+cU/pDMtDHrXYZLD7vVX9r9zw1gPo/QPKg31DBs6qyOPEO0yWJvYDz+3w0/ X-Received: by 2002:aca:a84e:: with SMTP id r75mr812425oie.89.1586347386761; Wed, 08 Apr 2020 05:03:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1586347386; cv=pass; d=google.com; s=arc-20160816; b=hr0TvblliCw94CyitAMYuINCA4qujk+K8kf637IC5ShwxUUJns8tiHy0YQv/sGxviw PkT6ccZ4QAuteG62ItPcaAorE7d7sMMDeJ4W4v+2GB6Q10WGbsj/HiYGv+cQGjDrbNda oDdsZf0MyokTH00KpQ5sK6G8tk1TIMUJHf0Dh2ny1tQDzTiXLZODmwVZKzcUGbupCJCi YRX0RenVRHrCkkdRyvLPlxMsZ0T0vgt2rtuSQOSZUKGxM1L0hkiyFfmmPIkyeFHTNUkn 4PHRfAFnIsfboBzd4WxfnuBuSHV/2o/yVoFwjoA65nLiceWAXzMPeVhqiPrkuv2LySy9 DwCw== ARC-Message-Signature: i=2; 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:date:subject:message-id:cc:to:from :dkim-signature; bh=xfRiY7sN5wTn7Esit9RnU+5Uk6h1t0zgJThoq+Q/xtE=; b=P2JZRlzGxjT7Z9hoMmT4q3BIQCvrYTWkxKUGl/MJQF5MXKim8xYqWGb/23pXx6exgL aNQzEnM0jDTW6Qzb5nXCYABDrOWhoFySfVy5x1bXNwpMCUPL7BSHf8KwMlvR528KMYah TPn5/mUoKaFVsnHDEXtNRaUldRORjSf3qS953usOq+wBnWjSyqv/zfgi9YEYBSdXWtmn cjAQZxKod4xBVEsA7by962pUgfxZH0mKlmfpgSxu0HndNfoedAiXaxYG3YksW/utKhhW hxWq0ER/dePM3rUN2AJlnB8WfT4eWckfmrJsZwoxZH2h+vRYRBJuIlu/J83qEGE6nsog gzoA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=OLVRyIHI; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dmarc=pass fromdomain=flygoat.com>); 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=pass (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 x74si1925940oif.119.2020.04.08.05.02.35; Wed, 08 Apr 2020 05:03:06 -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=pass header.i=@flygoat.com header.s=mail header.b=OLVRyIHI; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dmarc=pass fromdomain=flygoat.com>); 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=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728556AbgDHLjo (ORCPT + 99 others); Wed, 8 Apr 2020 07:39:44 -0400 Received: from sender3-op-o12.zoho.com.cn ([124.251.121.243]:17845 "EHLO sender3-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728495AbgDHLjo (ORCPT ); Wed, 8 Apr 2020 07:39:44 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1586345849; cv=none; d=zoho.com.cn; s=zohoarc; b=rOB4eIqHBzvfjx1r/DJQtcmeMIlpQOlMIV88Vb8er5WNnj5myzwMeVcXVVOovP3XndRAn4agq72yUOjsuDn+3urEXlBCvweRu/LEssLGGchCigJ49m6Tmw+rcJGpCb8yDSry3/3HR8sMi1AmchkNH7uxZ1aCKhcdl3n6mg6vouk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com.cn; s=zohoarc; t=1586345849; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=xfRiY7sN5wTn7Esit9RnU+5Uk6h1t0zgJThoq+Q/xtE=; b=bw9Gmk7NZUcOc4oX5bPsh37NoQWg0Fq7CNWbeQQWNm8KyC2xHoKVZWVDPDrXqfGgYymzYVawf63vhf8m2aoxphRhquyzYnglQ1Dc7uCTo3MwudZPh3V5I41TmOTyEJqQDIbsQCcpwwzyAm+jYECjvR7Gqr5M5wsDUHM072uqCo4= ARC-Authentication-Results: i=1; mx.zoho.com.cn; dkim=pass header.i=flygoat.com; spf=pass smtp.mailfrom=jiaxun.yang@flygoat.com; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1586345849; s=mail; d=flygoat.com; i=jiaxun.yang@flygoat.com; h=From:To:Cc:Message-ID:Subject:Date:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type; bh=xfRiY7sN5wTn7Esit9RnU+5Uk6h1t0zgJThoq+Q/xtE=; b=OLVRyIHIWLpCVYdms33TIvNnPkbg7Qq8jKfrCeRAVHEalhQggh5YlnE+oY7EwTHe Ey1HCvqH8d8tBZ22SaYFOZIVtnjFFQGYu1sD4fgu9sY5S50EIvFdlEl9UZUFgSW7d4a BYb6WdD+tQ7Lw9fjJ/5GiU46vvHFPQ6GT4I/lR9Y= Received: from localhost.localdomain (39.155.141.144 [39.155.141.144]) by mx.zoho.com.cn with SMTPS id 158634584664433.36732062087788; Wed, 8 Apr 2020 19:37:26 +0800 (CST) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: 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" , Thomas Gleixner , Jason Cooper , Marc Zyngier , Paul Burton , Allison Randal , Enrico Weigelt , Kate Stewart , Vladimir Kondratiev , Richard Fontana , 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 , Alexios Zavras , Steve Winslow , afzal mohammed , Peter Xu , Oleksij Rempel , Kamal Dasu , Mike Rapoport , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, oprofile-list@lists.sf.net Message-ID: <20200408113505.2528103-2-jiaxun.yang@flygoat.com> Subject: [PATCH 01/12] MIPS: setup: Drop prefill_possible_map Date: Wed, 8 Apr 2020 19:34:11 +0800 X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200408113505.2528103-1-jiaxun.yang@flygoat.com> References: <20200408113505.2528103-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoCNMailClient: External Content-Type: text/plain; charset=utf8 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) =09} } =20 -#ifdef CONFIG_SMP -static void __init prefill_possible_map(void) -{ -=09int i, possible =3D num_possible_cpus(); - -=09if (possible > nr_cpu_ids) -=09=09possible =3D nr_cpu_ids; - -=09for (i =3D 0; i < possible; i++) -=09=09set_cpu_possible(i, true); -=09for (; i < NR_CPUS; i++) -=09=09set_cpu_possible(i, false); - -=09nr_cpu_ids =3D possible; -} -#else -static inline void prefill_possible_map(void) {} -#endif - void __init setup_arch(char **cmdline_p) { =09cpu_probe(); @@ -804,7 +785,6 @@ void __init setup_arch(char **cmdline_p) =20 =09resource_init(); =09plat_smp_setup(); -=09prefill_possible_map(); =20 =09cpu_cache_init(); =09paging_init(); --=20 2.26.0.rc2