Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2433262rda; Wed, 25 Oct 2023 02:34:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH4wZ1kTkatDp42brQ6TeXK6qocJQUXpoAK2R1wTXvrp1spHXEe6A2i1vChe9YTv8XR85/e X-Received: by 2002:a05:6122:789:b0:493:5363:d1dc with SMTP id k9-20020a056122078900b004935363d1dcmr14796405vkr.12.1698226441224; Wed, 25 Oct 2023 02:34:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698226441; cv=none; d=google.com; s=arc-20160816; b=lf/zPgKkARfYkMlxvKbxN0wtiw1bYObgG1xl3KyMhUnG1QhNQq8HAGOYJ8pG83hphN D+jvoTQeYCdyfzG1k+lGisUuLHW6ZZTDOoRIdkha0Ex9UnB5NgBJnJBdZvGVWi+DegEu vr3SCn60Ut7LuVA1ZJyfdNUwv6KuWYPWRQhghxZjp7RtA1QdMOQw9B0SWnE6/2tGgB4W 3Jf3fKBZM4/xvFlCrMriILIYJeiLA17v0VFCM3XWjJik1iKk05IEuOJ/MG5OR0342iLh PRJASgCWJ1LfjfaMew5/1RxgV+4bFyWtr7Bk0xwjiJdFbEJoGx3nUUcR2RMbjQjaMD9/ bJDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=a6h2qrrHOmpOAJs1adxo4cYrcZIxEnN2++CwTiaWuFs=; fh=4OYJ3K2D0ofBlGhh3O4YuBicy23CNIUxbo78mZx4uJc=; b=I+8GDSLNAB5snratM9leoOhLvGUSAx6gvrf+i7QKoMikAXOxdNTXe1eYmCXIkUVZYo geJqELdAZqGjQkqNU9vwS6suuAmzODdg5g6hYUY2gsLhpxPRFwXv97dIKsUBopOcX41M uyZgIp6EMlXPavGZwCxAE7DktYsh2j0Ch2Lc7LxKeUy35UYLxjf6diXpaCU/c62MxEjK FqDkmNjLIXLE+pF+6HleeuQ8XktTO1sA256G3QNUjCV+d4H71rfU4JtaW/MOa0snuH5L gmQDC0GpZdCt0W02kE1WUUq2NiWY0c4PaHXkyhVvN0mCZF6in6ZPg6meEjAPuOC961CG ScuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id b68-20020a0dc047000000b0059f4f2da0efsi10522551ywd.220.2023.10.25.02.34.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 02:34:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 2C7E4801F96A; Wed, 25 Oct 2023 02:33:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233876AbjJYJdo (ORCPT + 99 others); Wed, 25 Oct 2023 05:33:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232808AbjJYJdn (ORCPT ); Wed, 25 Oct 2023 05:33:43 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6CAADC; Wed, 25 Oct 2023 02:33:41 -0700 (PDT) Received: from kwepemi500024.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4SFkBl3Wd5zpWT2; Wed, 25 Oct 2023 17:28:47 +0800 (CST) Received: from huawei.com (10.175.103.91) by kwepemi500024.china.huawei.com (7.221.188.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Wed, 25 Oct 2023 17:33:38 +0800 From: Zeng Heng To: , , , , , , , , , , , CC: , , , , Subject: [PATCH 1/3] arm64: cpufeature: Export cpu_has_amu_feat() Date: Wed, 25 Oct 2023 17:38:45 +0800 Message-ID: <20231025093847.3740104-2-zengheng4@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231025093847.3740104-1-zengheng4@huawei.com> References: <20231025093847.3740104-1-zengheng4@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.103.91] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemi500024.china.huawei.com (7.221.188.100) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 25 Oct 2023 02:33:56 -0700 (PDT) Export the cpu_has_amu_feat() function for using by cppc_cpufreq.c to check if the processor implements ARM's Activity Monitor Unit (AMU). Signed-off-by: Zeng Heng --- arch/arm64/kernel/cpufeature.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index 444a73c2e638..47195e66a820 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -1935,6 +1935,7 @@ bool cpu_has_amu_feat(int cpu) { return cpumask_test_cpu(cpu, &amu_cpus); } +EXPORT_SYMBOL(cpu_has_amu_feat); int get_cpu_with_amu_feat(void) { -- 2.25.1