From patchwork Thu Dec 23 07:45:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Rogers X-Patchwork-Id: 12697991 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 78E18C433EF for ; Thu, 23 Dec 2021 07:53:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:References: Mime-Version:Message-Id:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=YBRWXXLhVGShFox0hox9jXS5iIoCzAUcvWbZ2hbODVA=; b=CydHN1uCIXcXsFggQ3xgSyMuVj GKJppKnfUYqWp0i5z2NTSiLpyQr25up61gMr24/N3gi/P27ZBkaG/FNs3fqAL5Y3QhH/lPk/GvELB h7+NhZMjZkmrdhsYSUvmrmszlZ+HvZqC/cLOwzulOnB/SIIs91/r3ncTx9aSDguCXdMM+ISL+3tfM xEJRdNoOEumTiNVpNOciP1gPX9c+3zOEn8uPf/n67k81e+b3dMsrsFbj9Uzw4ne4mdfrfgmFJQ7WC GclhvyL9PIhGQWd53taGaXNw+LqWRE0Ht6G8W+2CiwEDg0rKGkX1oPFFo/rNmCFt9R4Mv+iOnfIsT ZQctLLZw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0ItQ-00C1y4-Ja; Thu, 23 Dec 2021 07:52:05 +0000 Received: from mail-yb1-xb4a.google.com ([2607:f8b0:4864:20::b4a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0IoA-00BzYy-Sp for linux-arm-kernel@lists.infradead.org; Thu, 23 Dec 2021 07:46:40 +0000 Received: by mail-yb1-xb4a.google.com with SMTP id q198-20020a25d9cf000000b005f7a6a84f9fso8566449ybg.6 for ; Wed, 22 Dec 2021 23:46:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=eEInaxEsEve0QLZ8igLVk6cMHD2TdWaDtxRpGZXeF78=; b=N0vrtFwLQU1q7abSqGMyKyZMpqH7TqawrR8F7sIDWlmeD8nJn1YMTHJnwzJzlGNmvt J7WxUSGU94JZE5zGQuPjqwRW1QkzYmMweoDdwYwwGCf0pmyb+cpjlMtiS+YlKlkPw1iR rq2SRy1jE+wFvR8RfYGvtYgC/UDaNpaeceparnLTY8Q648j1CTfvwCA0dFPnZrmtN8F9 LHH3JcdArfNeGgnKwRr259ANm1LntQ4ThbBOyJxjc30YV9B/DPBPfHHyDPQhEULzvcne F3Od8Oj9uCQlNj7Gt4gC51eGmleTyedGxODKnOiBAUIFEaWS6Xfp4OcikxSR+E991UE2 EZwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=eEInaxEsEve0QLZ8igLVk6cMHD2TdWaDtxRpGZXeF78=; b=sdFDv6rjQysuNppSNpTk6NfRkvOTYNA1t38A45nGfYGS5Oa78Yr3DkwFIyFE63MGpd XU5LlsG9hPVyBgqRTFSG+D3tWG0TCf9lG8zoP1TVq7ymnMwjBfCM0fq2MWtZeNRR5V0t 0/uqPtvgQOcJdrpROOMOBUOtgIQ/3KblqGCfB3wbtBD0KQcZ4Xz3RXm8BDIHoIVghILq l4saYm5JLr4z4ZqXr+ysEIsQdiy32xfrRNzRdCYa8rYgF1C1va7QP32YseXyomNXdkn8 t6nMlZr2XJMqVQlJ4J7/EaaRhU/6crdn2FS4O9L6ou7/CcW91yneRcQr5nSFMvCVZIHB 1eYw== X-Gm-Message-State: AOAM5311RIsEdhIshYcyoDywzZDnrUTZzhRebFUwt1xp35BJx82FCzg2 yUGoORAnfVtDu3bvpt3EPEhlHRG4H0zS X-Google-Smtp-Source: ABdhPJyMV9p5dilbpJj9lZFv4lwVDJfkQWdmjSih72KOOnbXd0DtxzUGLUbt+Dwd++RBqmm/x3rguqLNwJzC X-Received: from irogers.svl.corp.google.com ([2620:15c:2cd:202:4fef:90ff:589d:24ca]) (user=irogers job=sendgmr) by 2002:a25:bbc7:: with SMTP id c7mr1571216ybk.725.1640245597478; Wed, 22 Dec 2021 23:46:37 -0800 (PST) Date: Wed, 22 Dec 2021 23:45:05 -0800 In-Reply-To: <20211223074541.3318938-1-irogers@google.com> Message-Id: <20211223074541.3318938-13-irogers@google.com> Mime-Version: 1.0 References: <20211223074541.3318938-1-irogers@google.com> X-Mailer: git-send-email 2.34.1.307.g9b7440fafd-goog Subject: [PATCH v2 12/48] perf cpumap: Remove unused cpu_map__socket From: Ian Rogers To: Andi Kleen , Jiri Olsa , Namhyung Kim , John Garry , Kajol Jain , "Paul A . Clarke" , Arnaldo Carvalho de Melo , Riccardo Mancini , Kan Liang , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Vineet Singh , James Clark , Mathieu Poirier , Suzuki K Poulose , Mike Leach , Leo Yan , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org Cc: eranian@google.com, Ian Rogers X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211222_234638_955178_201F44EF X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Unused function so remove. Reviewed-by: James Clark Signed-off-by: Ian Rogers --- tools/perf/util/cpumap.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tools/perf/util/cpumap.h b/tools/perf/util/cpumap.h index edd93e1db36a..22e53fd54657 100644 --- a/tools/perf/util/cpumap.h +++ b/tools/perf/util/cpumap.h @@ -53,13 +53,6 @@ int cpu_map__build_core_map(struct perf_cpu_map *cpus, struct cpu_aggr_map **cor int cpu_map__build_node_map(struct perf_cpu_map *cpus, struct cpu_aggr_map **nodep); const struct perf_cpu_map *cpu_map__online(void); /* thread unsafe */ -static inline int cpu_map__socket(struct perf_cpu_map *sock, int s) -{ - if (!sock || s > sock->nr || s < 0) - return 0; - return sock->map[s]; -} - int cpu__setup_cpunode_map(void); int cpu__max_node(void);