Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1458217imk; Mon, 4 Jul 2022 03:34:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vf+01xyExqq3kFz7XirxMfcxaNLTbCFCPhJU/JlxD1RowInOvX4PmYZtDOKETw95U8i3RA X-Received: by 2002:a17:90b:1e47:b0:1ed:2723:981a with SMTP id pi7-20020a17090b1e4700b001ed2723981amr36216790pjb.144.1656930850203; Mon, 04 Jul 2022 03:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656930850; cv=none; d=google.com; s=arc-20160816; b=TIGwsJC2Co6UfunGBfOiDe5LLgLy6sP9CUATZHxv/JC7DzncgorRI05Nlbbf/bREGO KHitadQ1TXpqA17q6Q60PVxTyI7u6Kxh5dE7KMvweOFcruhMK9s9YQynhKCtyudP5KsB F22gJltdFwIFiwAdWkklicyfDoUCLDH7/MQxjwYWzq+YCJYZeT4m1fb6LHV/PyirmQ+G 1r6o86G6cbH2diETEVeyG+9AnWlFmz0lkFQdYTEeQ7+KPAbTBTkwRpDhxmOY7KBmMUve hlWYRW1WyMLYmQh4FpkU0sZjRb1AP/BjA7Ox+9ncVzXSW7USQqrFrPUMJESgHymd8ohs dvxQ== 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=beDrYdu/F9xdSz/NUlH94o75VqNoOIs2z7zJMKtVGEg=; b=B0LJyaek+I80/UzK3+d/QzM6ZCiHOVTneyr33eXnls5gQNEmmicg+wCS5n1T3kwk87 QaVF966DnsPx0qt8XbPEqVmMWu7C0h5B6DhUpuXFujGKhhf/gbX32HlpANsu2KmVjuNo z7jFS24q6FF65N3gNYzPPUFj0/ir5XieVWCt4DZcCKNBxDxkP1Jd+ZrRSZ9k4WvdxY/j MpiH7HXKa/vUG58+RZ/JmhWligYj5CDrn8zaz4KlailDpyyere8b/I/hGDIAyidgvTug qw30zdgf0vCraH1b6l5VBsscV1Ktp8avy4+fmjYVZIOSiKjbb40WNutwKqgmTJtotivw 6otg== 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 md14-20020a17090b23ce00b001ecdf878379si13223541pjb.150.2022.07.04.03.33.58; Mon, 04 Jul 2022 03:34:10 -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 S234472AbiGDKS1 (ORCPT + 99 others); Mon, 4 Jul 2022 06:18:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234345AbiGDKRB (ORCPT ); Mon, 4 Jul 2022 06:17:01 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4B08CE030 for ; Mon, 4 Jul 2022 03:16:59 -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 30ED5D6E; Mon, 4 Jul 2022 03:16:59 -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 0613B3F792; Mon, 4 Jul 2022 03:16:56 -0700 (PDT) From: Sudeep Holla To: linux-kernel@vger.kernel.org, Greg Kroah-Hartman Cc: Sudeep Holla , conor.dooley@microchip.com, valentina.fernandezalanis@microchip.com, Vincent Guittot , Dietmar Eggemann , Qing Wang , Rob Herring , "Rafael J . Wysocki" , Ionela Voinescu , Pierre Gondois , linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, "Rafael J . Wysocki" Subject: [PATCH v6 21/21] ACPI: Remove the unused find_acpi_cpu_cache_topology() Date: Mon, 4 Jul 2022 11:16:05 +0100 Message-Id: <20220704101605.1318280-22-sudeep.holla@arm.com> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220704101605.1318280-1-sudeep.holla@arm.com> References: <20220704101605.1318280-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 Acked-by: Rafael J. Wysocki Signed-off-by: Sudeep Holla --- drivers/acpi/pptt.c | 37 ------------------------------------- include/linux/acpi.h | 5 ----- 2 files changed, 42 deletions(-) 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