Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp659198ybb; Wed, 8 Apr 2020 07:32:22 -0700 (PDT) X-Google-Smtp-Source: APiQypLp01C1L2lzDCk1ap+70uKpf0hXJTk8oOIHTw5qDOfRtY4kRsDcilg4n4MQmp+gbN/kczbe X-Received: by 2002:a9d:3d84:: with SMTP id l4mr50425otc.351.1586356340048; Wed, 08 Apr 2020 07:32:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1586356340; cv=pass; d=google.com; s=arc-20160816; b=I2gkZF+/0m9QVIRqPU1OR12tLfzX66RKIZtD3hy59+ulVqrANK4MRJZZCCW/O/EF9N tMiASA7Pr3y/IoUDyQciG6hEuoP+N2EZNlU+HMAMWU4wHQ3+hBZVDycXR/hWiEllUs/B ojjf0m/YASKGxRRGtkTuIXgvFZ2hp7MrE0VLJ5m9vY9X77guGL6j0Rd7QIZQitl91efZ oYcA9jIPQTC59Z9lLn9G3NIHt37CKjtYlBoX91JoKSEB4WvpZdyY1bbLH1vK6VdejXOJ 8knNor3FbRZ13sqF04SXOIjFXzZHL6aFh2CY3Qhm3UQBa4OAL96J9nOjBpMugHSIQpzM 48EQ== 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=pvVcRtCqfH3vqqhS/khlj9DqWBnRf2S/d6gBy/uBo9A=; b=iXA9t5lCInRJBZ/OQmWmy3wgZtoxJ3s7Q/7qbXEKbYqH3eTFljCsmAaCvPVPRXJx/M tOa8b3NtDsdglosjHz9XPyZaONrxQW5OlFT7v4FsEChBtUC7N0GNQjWsYZ8rbEVVRYvn UJKViptushX8jgDTggdIX18ezOkkVvWQ+iG3Gg4OHcnPiKWhhEP2e1AdzM7JcMYwS3FR xpp3GgRVMeTIsQDD+NJrA16m2IAs4LDCPoj/FWFl7Hyu0vSlCnY2dTNx0mwHcikGNH3V T8oCBK/eFzargCv7Lr9HjCNfm2eSU5m/MLmyy3doBbFiHNYM2LG+TbIBQglWamt3U4E9 XAgQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=MGi8nusr; 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 18si2033917oin.182.2020.04.08.07.32.01; Wed, 08 Apr 2020 07:32:20 -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=MGi8nusr; 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 S1728935AbgDHNEN (ORCPT + 99 others); Wed, 8 Apr 2020 09:04:13 -0400 Received: from sender3-op-o12.zoho.com.cn ([124.251.121.243]:17891 "EHLO sender3-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728890AbgDHNEN (ORCPT ); Wed, 8 Apr 2020 09:04:13 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1586350933; cv=none; d=zoho.com.cn; s=zohoarc; b=TBes1nXwoj0zlkCQrPxZBJVTTZxUidOXybCr53tQQNtAp5OzWyUj9yaIHeUefNxurJczHBK5/jAHenwJfO6BXQb21uZ07BDHO9ebYft+P+/UrBXCZn2F1O9dePYnT/JA9PX4PGydkGyGuuP+VZGBw1QY1/bqdgFMAY0G9Joc8DI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com.cn; s=zohoarc; t=1586350933; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=pvVcRtCqfH3vqqhS/khlj9DqWBnRf2S/d6gBy/uBo9A=; b=VMcIyzmdc6pGrzmyukLutD0E4xjg8gtmszFlaeKO+hgLK/Iar7B/e8IHxyYXI4Mk+EEPMrUZ40uQfMcOXiusAX+mXmNyItdA8DS8KJva1bV8qzHcE+ZSf3KbS+kEB3GA49XXKU3Shh/nggPz+ME5w1gEH5afZgVGlpoYivQgLbE= 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=1586350933; 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=pvVcRtCqfH3vqqhS/khlj9DqWBnRf2S/d6gBy/uBo9A=; b=MGi8nusrZDH6aWUCxRhrByaRYgtWIrIT5t7vKeTs9jzc6F3EbD23XLosAXfoV4Eq kBIF1wyn6XiG/Qef84kVrzDLq0ajXSJZEloA2Vku5ZVoin8nvONSnH9g1G/RjrCDeTs m79PD7Kh1dQmCivoM1AszQC3r+FsK2oQ4OtuLF34= Received: from localhost.localdomain (39.155.141.144 [39.155.141.144]) by mx.zoho.com.cn with SMTPS id 1586350931576768.9659616147869; Wed, 8 Apr 2020 21:02:11 +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 , Thomas Gleixner , Jason Cooper , Marc Zyngier , Paul Burton , Allison Randal , Greg Kroah-Hartman , Vladimir Kondratiev , Arnd Bergmann , Serge Semin , Matt Redfearn , Richard Fontana , Steve Winslow , Alexios Zavras , Kamal Dasu , Oleksij Rempel , Mike Rapoport , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, oprofile-list@lists.sf.net Message-ID: <20200408130024.2529220-4-jiaxun.yang@flygoat.com> Subject: [PATCH 09/12] MIPS: bmips: Switch to new topology interface Date: Wed, 8 Apr 2020 20:59:51 +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 Change the parameter of cpu_set_core from cpudata to cpuid. Also set cluster id for bmips as it have different method to probe actual hwid of CPU, and smp_store_cpuinfo is using cluster id to determine if we should probe topology info again. Signed-off-by: Jiaxun Yang --- arch/mips/kernel/smp-bmips.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/kernel/smp-bmips.c b/arch/mips/kernel/smp-bmips.c index 9058e9dcf080..c40bb37eab38 100644 --- a/arch/mips/kernel/smp-bmips.c +++ b/arch/mips/kernel/smp-bmips.c @@ -247,7 +247,8 @@ static void bmips_init_secondary(void) =09=09break; =09case CPU_BMIPS5000: =09=09write_c0_brcm_action(ACTION_CLR_IPI(smp_processor_id(), 0)); -=09=09cpu_set_core(¤t_cpu_data, (read_c0_brcm_config() >> 25) & 3); +=09=09cpu_set_core(smp_processor_id(), (read_c0_brcm_config() >> 25) & 3); +=09=09cpu_set_cluster(smp_processor_id(), 0); =09=09break; =09} } --=20 2.26.0.rc2