Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2095941ybb; Sat, 11 Apr 2020 20:32:08 -0700 (PDT) X-Google-Smtp-Source: APiQypIzLHd38ULk0eQ1M+ATDsaiQpjNpDGMCrI8V6IR5oWbN5XJ1OvSbj8w1MQghLODjqlVpp1v X-Received: by 2002:ac8:6898:: with SMTP id m24mr6017962qtq.65.1586662328818; Sat, 11 Apr 2020 20:32:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586662328; cv=none; d=google.com; s=arc-20160816; b=JPCf44wAFb4/NbDCHmoEbgeK5RT6bfUmc3PCoQq4E1dVfzNLByWjkuDt99HQm8VCej ZK+h3f1z9zl4IXcBOhos9xW86i+oxJitYs+TCUZDK1DAtOkTP6QFI2bXUZwcuc6dC1a0 0JHdwGUnJ1kEqvZkPmvIRU83pEL0SvddQq5iLkGTBIpU0WpTfdiW13vp6K8dGP7RtAo0 dKi+0l8NxC81MixzjUHx4enbd/5cqyNgFVugu7sWxnUDJ8oe/Kfef/l21kvW9/XQboxA mhaQhVUr0loBrJfzkNc1f4yB5upexDuOrh/Fw9pxwV0pWYIylJbpLXdq6uV6FuVDNuze UHHg== 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=pr4JRVKsDGZLiWxGisAHt04R8KPpJJlWWiczH85283M=; b=VxNtbhwSRaafERkDmhPTXOL31KBWt7yQs9QCOKNzlSjji3hioYABKgsbYQtNVvmnDD bPPAp6p7qLMtUvydW4GlmHCwdGRriwnJKEPD71c5bzJo12wU1lAJupJIDprdrawZvAH6 dSVEwnd4AXHJmG0P2Jv0n0b32rJ/mVsez8gC6xuLduNNp6vICXnHTqivzkxgeFR4Ikzv +wkPuuSGFv1MHoryvktJjfL++9+HaWnWvaHphXwCDP/MQflZX8AmI8RFQdxaKpWh3ARs iuMEwcydGS4Px63eYs/nuUa6RKRah+icNa5+x/nYbVVrNLM46lDb36P/Lp8qp3yvboVK IBVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b="AguW/aEn"; 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 d64si4212055qkc.304.2020.04.11.20.31.54; Sat, 11 Apr 2020 20:32:08 -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="AguW/aEn"; 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 S1726880AbgDLDbK (ORCPT + 99 others); Sat, 11 Apr 2020 23:31:10 -0400 Received: from vultr.net.flygoat.com ([149.28.68.211]:55098 "EHLO vultr.net.flygoat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726565AbgDLDbJ (ORCPT ); Sat, 11 Apr 2020 23:31:09 -0400 Received: from localhost.localdomain (unknown [IPv6:2001:da8:20f:4430:250:56ff:fe9a:7470]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id C95F420D2B; Sun, 12 Apr 2020 03:31:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1586662270; bh=ZVoEHgyxwKRnpz9YM+7JK0CgnU+b6VSlDxJRGNc9WhU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AguW/aEn9egIUVf9Xs/nZ5oJzpXDA+gH+31H66p/dgAjejW5GZBsekpFsfshFyn1/ Q/7+38hfghIhqY7aWWUphwB01sJsYYQSoQ4zoftpqR8/T17hwt7yebt5/4yKQCDAaE 3J/V1guU57bOZGpQvEEfacr3dbG6+iRtebHsV9hHfMBBbJbS3OzqoV+mRjYSUPU67m Z4XrMASt7salrpbY8/x9z8SNk0LHVLdeHRT21uD8UBOzR7H1imATE05DT3jPzLzVp6 D0+pr6x8u70Q7CayGX2NbOd7e2fJAcjXcO+fGJxu/6ljl74DBo9cH/UMcUV5RaWJeK LQhxAdnggTMYw== 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 , Kate Stewart , Enrico Weigelt , 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 , 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 10/11] MIPS: nlm: Switch to new topology interface Date: Sun, 12 Apr 2020 11:20:40 +0800 Message-Id: <20200412032123.3896114-11-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 Use new functions to set core_id & cluster_id. Signed-off-by: Jiaxun Yang --- arch/mips/netlogic/common/smp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.26.0.rc2