Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp617782iog; Wed, 29 Jun 2022 07:01:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tMNq9G7F2cH3ZYnFuoqmwqg94fAYREbXR+jZ/mWohmR4nCOyvJjm5O3jR/frO3Y/FNMfSj X-Received: by 2002:a17:906:6a11:b0:726:97b8:51e9 with SMTP id qw17-20020a1709066a1100b0072697b851e9mr3526530ejc.115.1656511275728; Wed, 29 Jun 2022 07:01:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656511275; cv=none; d=google.com; s=arc-20160816; b=VGrUq1iqMGfGmmfv6xj7c+Cn5P3euQW8X6PmivQofSZSmPl/uzupoDQ7WTF/b7o9Nf jBCR9eTECf4ZgJ53k633fHN0KwaujnpHzT1tKjpFSui2rl8S5041ud3KdYorbXn6Yib6 xN1F+8HtbnHGq3ctmFwCrGR7jnZpbk4WS4NUOxe4j4Q3/KWtMLC056skRaj6BH2h1ddo kF4PyvOsjAHo2mAfPqdgb84w9UsVUng3kk+4xoxjAZ74jd9D2x38Tb7teZMqUSvqjW0q 5P5XC/VEZ+AdQedD0Kd/ai3XUoPD3Ey1jeuz+o8xKnikJoBTexmmFXNC44YV1RvvloaG VqMg== 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=TkkxBp49ZgQ3sxVSSlwnJYZcQiWW6iRqlehBxJsKbKI=; b=FY/CcG6EtwlNKBaPfIyY5Vx7iE1BDzcU98aMI1IIufZHFcrYSV2jHouP3cE9k3HpmX dkCILq1H7GkJm147GoPPbFuVWOJT5FF/YsaMAaAP2CVg21EmHNsm2mbqzN1EvEGSqtGx wSkr4DhDDlKTf+W8FsoKNIYfgJaiGboW2tT/X1wW9UDJNrGzTEDdjclqEW2LkfE0MFHy bUBmgPfg71brj6tN7whlPogVZ1b1e6y71gpFy9UvgxlGYpTvU91+rT7YSQRKbx7M5DcZ +vlVGbI7VXeD1/xov3NMz3R4xmx8LzvI6oOyfOyPSyK2/+GdMbqEhVkfslP/AUUq9Azk lkgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg3-20020a1709072cc300b007276779b9dfsi3350755ejc.599.2022.06.29.07.00.47; Wed, 29 Jun 2022 07:01:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233682AbiF2NG6 (ORCPT + 99 others); Wed, 29 Jun 2022 09:06:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233656AbiF2NG4 (ORCPT ); Wed, 29 Jun 2022 09:06:56 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6B8C522508; Wed, 29 Jun 2022 06:06:54 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 63BCB152B; Wed, 29 Jun 2022 06:06:54 -0700 (PDT) Received: from usa.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 62B703F792; Wed, 29 Jun 2022 06:06:52 -0700 (PDT) From: Sudeep Holla To: sudeep.holla@arm.com, rafael@kernel.org Cc: atishp@atishpatra.org, atishp@rivosinc.com, dietmar.eggemann@arm.com, gregkh@linuxfoundation.org, ionela.voinescu@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, pierre.gondois@arm.com, robh+dt@kernel.org, vincent.guittot@linaro.org, wangqing@vivo.com, linux-acpi@vger.kernel.org Subject: [PATCH] ACPI: Remove the unused find_acpi_cpu_cache_topology() Date: Wed, 29 Jun 2022 14:06:44 +0100 Message-Id: <20220629130644.1258904-1-sudeep.holla@arm.com> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220627165047.336669-1-sudeep.holla@arm.com> References: <20220627165047.336669-1-sudeep.holla@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The sole user of this find_acpi_cpu_cache_topology() was arm64 topology which is now consolidated into the generic arch_topology without the need of this function. Drop the unused function find_acpi_cpu_cache_topology(). Reported-by: Ionela Voinescu Cc: Rafael J. Wysocki Cc: linux-acpi@vger.kernel.org Signed-off-by: Sudeep Holla --- drivers/acpi/pptt.c | 37 ------------------------------------- include/linux/acpi.h | 5 ----- 2 files changed, 42 deletions(-) Hi Rafael, This is another patch that I would like to be part of the series[1]. Please ack the same if you are OK to route this via Greg. I am avoiding to repost the whole series just for this one additional patch for now. Regards, Sudeep [1] https://lore.kernel.org/all/20220627165047.336669-1-sudeep.holla@arm.com/ diff --git a/drivers/acpi/pptt.c b/drivers/acpi/pptt.c index 763f021d45e6..dd3222a15c9c 100644 --- a/drivers/acpi/pptt.c +++ b/drivers/acpi/pptt.c @@ -691,43 +691,6 @@ int find_acpi_cpu_topology(unsigned int cpu, int level) return find_acpi_cpu_topology_tag(cpu, level, 0); } -/** - * find_acpi_cpu_cache_topology() - Determine a unique cache topology value - * @cpu: Kernel logical CPU number - * @level: The cache level for which we would like a unique ID - * - * Determine a unique ID for each unified cache in the system - * - * Return: -ENOENT if the PPTT doesn't exist, or the CPU cannot be found. - * Otherwise returns a value which represents a unique topological feature. - */ -int find_acpi_cpu_cache_topology(unsigned int cpu, int level) -{ - struct acpi_table_header *table; - struct acpi_pptt_cache *found_cache; - acpi_status status; - u32 acpi_cpu_id = get_acpi_id_for_cpu(cpu); - struct acpi_pptt_processor *cpu_node = NULL; - int ret = -1; - - status = acpi_get_table(ACPI_SIG_PPTT, 0, &table); - if (ACPI_FAILURE(status)) { - acpi_pptt_warn_missing(); - return -ENOENT; - } - - found_cache = acpi_find_cache_node(table, acpi_cpu_id, - CACHE_TYPE_UNIFIED, - level, - &cpu_node); - if (found_cache) - ret = ACPI_PTR_DIFF(cpu_node, table); - - acpi_put_table(table); - - return ret; -} - /** * find_acpi_cpu_topology_package() - Determine a unique CPU package value * @cpu: Kernel logical CPU number diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 4f82a5bc6d98..7b96a8bff6d2 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -1429,7 +1429,6 @@ int find_acpi_cpu_topology(unsigned int cpu, int level); int find_acpi_cpu_topology_cluster(unsigned int cpu); int find_acpi_cpu_topology_package(unsigned int cpu); int find_acpi_cpu_topology_hetero_id(unsigned int cpu); -int find_acpi_cpu_cache_topology(unsigned int cpu, int level); #else static inline int acpi_pptt_cpu_is_thread(unsigned int cpu) { @@ -1451,10 +1450,6 @@ static inline int find_acpi_cpu_topology_hetero_id(unsigned int cpu) { return -EINVAL; } -static inline int find_acpi_cpu_cache_topology(unsigned int cpu, int level) -{ - return -EINVAL; -} #endif #ifdef CONFIG_ACPI_PCC -- 2.37.0