Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp625832ybb; Wed, 8 Apr 2020 06:49:34 -0700 (PDT) X-Google-Smtp-Source: APiQypLGPkvqH0ve6WhWvPt+FQ6XbzQb+A6ptXHYHw7O3HkLJgWgxoNn8wre4qK0xwV5SXsdOfhS X-Received: by 2002:a9d:2056:: with SMTP id n80mr5991731ota.281.1586353774192; Wed, 08 Apr 2020 06:49:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1586353774; cv=pass; d=google.com; s=arc-20160816; b=AQDLB7ByN6HEgY6O1In6TCppDd8ZZTyaM8qM2aL3jnxdEtpwQ24+vLki+5NT/zYQVF T8gljL+QrCHRLYO6fu4Y5PTtUsvXFgf5jKrmvfo/kivq76ReO5SmyMAr8d1OQ/Zj0jI6 I7sN8BfNzLZD+7zFvLxSe+CI8komD6b+EDoRDDxIZgdAmkEgnhcBJSw294FAF6Vqv8kR Nkw9sxn2QzeAu24FBy7O0TfLPXq2U8gDR6emYHpytIiKzV2bKivhMpMU5GPxpzlkKfQI c2QTB3w6+N5JHBjpR8/G/FNzq0adQ+R/B0G1b8Akr8GZmkhNGSGM9N3F6TVe7oBCpqqy xrqw== 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=aw5fv1+FHKbDSfG1HhhiLI2xBtjZelF5Lqomgzhxync=; b=dacP3DBU/3r6EcJqI6jhYCYfn91wfejObdJ0TK86zw2Ae19loLKmglj/jOxI44/r1y MxDDutprNu+rfQlX3QCnoYrRUaB4eF/y1S/2qa8Wp0U2cv1srgUcsj/EMT8mawh+x0vU t4J6L/fKbdranVlHx7REGKMUUu9tvomrz0DbtbaPSujaZkVomWjBadu3LCX68UoALbDi tW4jXt9nBoi6wp7l5V5JC4kihtQe4CdUqz0T3rap+2ma4scjBkVP9zb+MEelp/1W3W6H 9uNNsigqb6T0LeA02AG3s7CXD9O8JrxFTNPdfJ4dzafzp99HB2h1mclVqNFrw9RxDibs AzJw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b="WLY/VTOl"; 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 v13si656949oos.85.2020.04.08.06.49.20; Wed, 08 Apr 2020 06:49:34 -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="WLY/VTOl"; 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 S1728947AbgDHNEh (ORCPT + 99 others); Wed, 8 Apr 2020 09:04:37 -0400 Received: from sender3-op-o12.zoho.com.cn ([124.251.121.243]:17897 "EHLO sender3-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728294AbgDHNEh (ORCPT ); Wed, 8 Apr 2020 09:04:37 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1586350964; cv=none; d=zoho.com.cn; s=zohoarc; b=bOJbxhTRmbAJiIY0YfvBkBJ3s4s3+dE0pR6CmZrWAx2BdDyljE6FvJ5uAXS7Cet9FXbJEpob1jcFMuQ4kIfeWlWNB2ZnHEg746nb0XVAAKAcWdg58ZvsWozMgcVA5F4cXu93m2mFQK2MLy6Ig6O/+MkfdQCKt8i2N+9bnON+Juk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com.cn; s=zohoarc; t=1586350964; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=aw5fv1+FHKbDSfG1HhhiLI2xBtjZelF5Lqomgzhxync=; b=JfjkIb3oCd+ZOGz+mLWCRo+dkKkUDYW13jLLcMRfggZwCvqX/LkPQVHYyNMkltJP0fI5ItW73S4qvNB1VyqiGgnvVIQH6SJWgskC8fBL9xxZMaT3xXQdm3VN/B5tHOVv0fmg58N2I5SShbOkRKPMCRXzsJ2VpBR2iAuFKvkhJ2E= 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=1586350964; 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=aw5fv1+FHKbDSfG1HhhiLI2xBtjZelF5Lqomgzhxync=; b=WLY/VTOlfZ1H69+4UJe1udiEyf0/w2p42G7i3Dc56zNwi62Qo/aPwg/upb9QqCMA LMZd5ajwAFdvIUHeaqs4MjOvIRduoMWKuA+BVgu2m3zv3b0CqZAgHWuM/Ziu2rCIxw0 KEaEYIm6ipcExu2Td8xNgm0TdWp0/H0V/zBFiCCg= Received: from localhost.localdomain (39.155.141.144 [39.155.141.144]) by mx.zoho.com.cn with SMTPS id 1586350963330259.880124634165; Wed, 8 Apr 2020 21:02:43 +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 , Kate Stewart , Richard Fontana , Arnd Bergmann , Serge Semin , Matt Redfearn , Steve Winslow , Alexios Zavras , Oleksij Rempel , Kamal Dasu , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, oprofile-list@lists.sf.net Message-ID: <20200408130024.2529220-5-jiaxun.yang@flygoat.com> Subject: [PATCH 10/12] MIPS: nlm: Switch to new topology interface Date: Wed, 8 Apr 2020 20:59:52 +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 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/sm= p.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) =09int hwtid; =20 =09hwtid =3D hard_smp_processor_id(); -=09cpu_set_core(¤t_cpu_data, hwtid / NLM_THREADS_PER_CORE); -=09current_cpu_data.package =3D nlm_nodeid(); +=09cpu_set_core(smp_processor_id(), hwtid / NLM_THREADS_PER_CORE); +=09cpu_set_cluster(smp_processor_id(), nlm_nodeid()); =09nlm_percpu_init(hwtid); =09nlm_smp_irq_init(hwtid); } --=20 2.26.0.rc2