From nobody Thu Sep 11 12:46:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 419F9C04FE2 for ; Mon, 14 Aug 2023 08:54:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235224AbjHNIy3 (ORCPT ); Mon, 14 Aug 2023 04:54:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234610AbjHNIxr (ORCPT ); Mon, 14 Aug 2023 04:53:47 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD2CE91 for ; Mon, 14 Aug 2023 01:53:46 -0700 (PDT) Message-ID: <20230814085112.446856860@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1692003225; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=hQfYcdF7GQaITly9hGbfzZYC7LCrnAubPlWj7Dl2pNs=; b=a06S/CTtgTg7k5HXPKYcjhkOC7j8CkGJCLjd3yNTUf/sN5z7ru0X+R0oJejG1j71n45ivp Z+h5p8XPsnEPBwmihM7Or3jxjS+vujgWHkM0y3d2xH4FMHqKL2fHNZY2g97vQ8PMQ7RLoN xToev2bErj5+lR2EM1nxgyTjViN/WQaqB8oZ/2asvZByYTobSk0RRoOzOFi4kLxMi1iroa XhIuug3pGSBHtrPT6jwKgyNhq7NV+Xi/6mz4lYVspdurKWZ8z5HmIbcm5tP+x6kULPVewe Efvnvw8HbuSjAaGbhSrN84S1sKYpKJxS8KTwdoi/EdjUX+GjyywYcGNDJfjg5g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1692003225; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=hQfYcdF7GQaITly9hGbfzZYC7LCrnAubPlWj7Dl2pNs=; b=CHeAtbWEWvTSrsFCBOIlqm0BdEDeRkq6FgFnmiPLGp/r8LSwyL1JQ0y1GNpKF4fVvX0npg JCuOoE7kEVPc2WBw== From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Tom Lendacky , Andrew Cooper , Arjan van de Ven , Huang Rui , Juergen Gross , Dimitri Sivanich , Michael Kelley , Wei Liu , Pu Wen , Qiuxu Zhuo , Sohil Mehta Subject: [patch V4 07/41] scsi: lpfc: Use topology_core_id() References: <20230814085006.593997112@linutronix.de> MIME-Version: 1.0 Date: Mon, 14 Aug 2023 10:53:44 +0200 (CEST) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Use the provided topology helper. Signed-off-by: Thomas Gleixner Tested-by: Juergen Gross Tested-by: Sohil Mehta Tested-by: Michael Kelley --- drivers/scsi/lpfc/lpfc_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c @@ -12442,7 +12442,7 @@ lpfc_cpu_affinity_check(struct lpfc_hba cpup =3D &phba->sli4_hba.cpu_map[cpu]; #ifdef CONFIG_X86 cpup->phys_id =3D topology_physical_package_id(cpu); - cpup->core_id =3D cpuinfo->cpu_core_id; + cpup->core_id =3D topology_core_id(cpu); if (lpfc_find_hyper(phba, cpu, cpup->phys_id, cpup->core_id)) cpup->flag |=3D LPFC_CPU_MAP_HYPER; #else