Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2894874lqt; Tue, 23 Apr 2024 05:11:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV+v5hchQFR8pEZWOILjPySKOQHh5A5sSBlh1JaIXuwcJdx2q2SbP1tmRACo8KXC7RXNqEFWHS57At+rWlaHNlTHJu1Fgf3vulQTnh7ig== X-Google-Smtp-Source: AGHT+IGqwIybBxr0eIOO8kfJFs48f+4vi2lqc/cCzRwQGy5eMt2JumsKePX4egQvEUIfvhnzuws7 X-Received: by 2002:a05:620a:2550:b0:78d:62b1:76d6 with SMTP id s16-20020a05620a255000b0078d62b176d6mr5063372qko.10.1713874272978; Tue, 23 Apr 2024 05:11:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713874272; cv=pass; d=google.com; s=arc-20160816; b=r8o6QvjSoVRcxdIP6HsyF2n6Nsleo7/EnR9vCHWEEuaZa202z/oQxuCpzvkqZsef53 9yS/nqQeNYQwzwPOyo48AMgjesin7XQTMN72wZ1Ru3A1PYdwC6gLBwxXcX4LpV+suiqi kXvhq5MnPqLZBWxPgnKds1a9RHuUu0cF48a3/ZoyC7F6Yi4rPq+vQ8ZUkJl24ZpHmxR4 zG4cA7S5jBcYfS6tEsdzu+SS04hgj2USfxzaaAafspNGhl3Ytx0YkLoUllhuVOsEdfS8 wH3gZQ7MDhxlzpC0oLYmgVWfG7L7BIWrQouVsfKZ8e4Hc3ZPkgwPYLGdWiZGBClF1cJ4 2AxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=PBBJB3XemNJ2sHk6Gf+lZ5i/WourH88pAYBz60CHUys=; fh=S7HzysLzJEf2t9xHfpKwrx1jR0+E6OoCAaKUKAWYRPs=; b=rURDeNV6q7pTdriQSq+9wlDvjBA6Y6XRNcPFn1ziQY4G34/jyslWU2KuSHWViVoBhd vQpRymsuxZD5x9XKHLk8lF3BERU8i8Jlsd8OZcwyPzvkWEb6v8A7zpU0wSLjEeP8Tt14 aX/CvHK2PMpBpjHMgNk+FxODzpNBWthSpI8NoL2fQal2xOyMCurCOcwfXZm5WJbGMeMv CHurjGz1XTC+c7nmxwquMc2PAVe4wKopznm7LUYVDhrok9qNLABocVC7aeNcRscTXH12 ncsDTRGmKc3ghH7rfB7g/l7Rvrc2hTrzFVOfz5AMR1p3sTsJFZaXMiJLI5mvCrM0qtJD 7HNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-155133-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155133-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u2-20020ae9c002000000b0078ebc07c4besi12339154qkk.661.2024.04.23.05.11.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 05:11:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155133-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-155133-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155133-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A435E1C22F83 for ; Tue, 23 Apr 2024 12:11:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C2710127E12; Tue, 23 Apr 2024 12:10:44 +0000 (UTC) Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B615386265; Tue, 23 Apr 2024 12:10:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.255 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713874244; cv=none; b=Xh6UV/EHQNzVCaSxMh6Pi+zdkO+BpFM4LqB+3X3wNXZiZdUDi6+P8SPvWpsxC4/ucFknueq8M6co5jlcqdfAkz6dqYHq5L1WHpLvSzidSp8dSsm35ggXBCCTqdb4E2uQy3berHG9fkfYDavKz8HnffaXw+TCsw01bLLIfB+OG+s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713874244; c=relaxed/simple; bh=Nop/hThbF2HzvuBYxmGb29cMh/jcpean0AZbibqZBiQ=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=OB2EtgKSgDidhaIgA8uTdN+H4vkNZ/J6QxU1PhwN4sbkf3amKNNSlSxz8D08mX3ORs3sXV4v5s9+MOtaqGZfaSYARzXCWkLZjpj73kbiWLNvkvbyDdYQ/1SspcaHpbRBxqJMgDxlJcNSt1dl7O/VOPE3A0x4uj8pymIcuXnEut4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.255 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.194]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4VP18W6Ktyz1R62r; Tue, 23 Apr 2024 20:07:39 +0800 (CST) Received: from dggpemm500002.china.huawei.com (unknown [7.185.36.229]) by mail.maildlp.com (Postfix) with ESMTPS id 2EE0C1400FD; Tue, 23 Apr 2024 20:10:40 +0800 (CST) Received: from [10.174.178.247] (10.174.178.247) by dggpemm500002.china.huawei.com (7.185.36.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 23 Apr 2024 20:10:39 +0800 Subject: Re: [PATCH v7 09/16] arm64: acpi: Move get_cpu_for_acpi_id() to a header To: Jonathan Cameron , Thomas Gleixner , Peter Zijlstra , , , , , , , , , Russell King , "Rafael J . Wysocki" , Miguel Luis , James Morse , Salil Mehta , Jean-Philippe Brucker , Catalin Marinas , Will Deacon CC: Ingo Molnar , Borislav Petkov , Dave Hansen , , , References: <20240418135412.14730-1-Jonathan.Cameron@huawei.com> <20240418135412.14730-10-Jonathan.Cameron@huawei.com> From: Hanjun Guo Message-ID: <344595f8-d40e-d410-26b7-e5d9b8cb1bec@huawei.com> Date: Tue, 23 Apr 2024 20:10:38 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240418135412.14730-10-Jonathan.Cameron@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500002.china.huawei.com (7.185.36.229) On 2024/4/18 21:54, Jonathan Cameron wrote: > From: James Morse > > ACPI identifies CPUs by UID. get_cpu_for_acpi_id() maps the ACPI UID > to the Linux CPU number. > > The helper to retrieve this mapping is only available in arm64's NUMA > code. > > Move it to live next to get_acpi_id_for_cpu(). > > Signed-off-by: James Morse > Reviewed-by: Jonathan Cameron > Reviewed-by: Gavin Shan > Tested-by: Miguel Luis > Tested-by: Vishnu Pajjuri > Tested-by: Jianyong Wu > Signed-off-by: Russell King (Oracle) > Signed-off-by: Jonathan Cameron Looks good to me, Acked-by: Hanjun Guo Thanks Hanjun