From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAB0DC433FE for ; Thu, 23 Dec 2021 07:46:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347021AbhLWHqj (ORCPT ); Thu, 23 Dec 2021 02:46:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347022AbhLWHqi (ORCPT ); Thu, 23 Dec 2021 02:46:38 -0500 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40329C061759 for ; Wed, 22 Dec 2021 23:46:38 -0800 (PST) Received: by mail-yb1-xb4a.google.com with SMTP id j204-20020a2523d5000000b005c21574c704so8595642ybj.13 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=2aPRlo+QjvjPAgUlgbf1y24n0FXaIjXTo2K6ERZAh7Fu2j68Y+QR5XVc/9b8Qvf1CQ YdPqjhln7lpkdxLmqwQ9HF+Qusq03HuzRxrUDgsAwADl+b3nDQdgeRenC4auhNkjI9Th GQ3hm5AJ8WDQatQ49k0FA7tPBe5BdvaeuvtcAg3ooQwILDaAUJMLaAufN/qB2rwEZOJz xmjsemBVaYTae3Qgmvzyj674wBTeH6nyVWOdniKnVeMOvUO3aVsQV3JiL8/SwLJw5G2j GlsIam1KApEjZqa68XxFqeujXUTdLD4UCvhP8QWnV83/w9K7cmhxYFcnfTxSf7zZ6sRE ZjaA== X-Gm-Message-State: AOAM532zMxnrgK/oGuRh/BKXcOFcWMn8Pbxtmr32dtm2A3HtcFwlNHWV jwiabFZdAd7SyeDMErFASllg1uWMxHmR 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-perf-users@vger.kernel.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); -- 2.34.1.307.g9b7440fafd-goog