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 ED9B9C433EF for ; Wed, 8 Dec 2021 02:46:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243637AbhLHCuU (ORCPT ); Tue, 7 Dec 2021 21:50:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243595AbhLHCuM (ORCPT ); Tue, 7 Dec 2021 21:50:12 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40E61C061D76 for ; Tue, 7 Dec 2021 18:46:39 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id t184-20020a2546c1000000b006008b13c80bso2176952yba.1 for ; Tue, 07 Dec 2021 18:46:39 -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=JDNiGhsNHgdmMUztfVS0cnfpFuxHbFnC3w+TxzcO4qI=; b=JJ7/x6DfuHkASvF7wwLFs0k6i+67I0tnw9tx9PMmghz72m5Sn13MHx/YhyOjfi+Zr8 SbC03NZPML15LTl1g3fxNoiQnFBYix6jL0tJhSL9vjfRNV9d+sRXhcX4EQtL+fF4uD5S frd4E+pDfSuJD/Mtpx4kHDsa81aCpq/49V629laKEw65BRMBPUXmeFIdkFt0c/9kPAH5 BxaBF2GOAWQpfq6VS4FWgSN2s6ARePKRkJOFh7rRJ3nejs9sX/S07EztA6JktNQu6t94 M6wXYcJsvH1v0Cx2s2YWOAB0ryUtrdXNshmjVYvI+oeDO8p9NCdj1jrtBtxufod4hrAd VtBg== 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=JDNiGhsNHgdmMUztfVS0cnfpFuxHbFnC3w+TxzcO4qI=; b=vSKvSwlmRZCwPHgHadFfxvWF6fKA1eALVurqgRJa2P+fV7r4Ve8wZjy5dRlm5xY93y CqXYGxLwJ9NLXKikXjOgq01/TI9u2KcJDeqhw4+d0Z2wSewmJTax2r44RmtGl4V7il/0 7DpM1EFja70bqjmJ2zQrsjAKEyFeqn9KyqwHI5lDHuf3aZxezfh0W6hHzzkwrEqVrM+B PUub8SxfS7RYAomwpfEAAmlbBLBzNs5jw99dOWNw/Bcb+RA7ZWMrlkn6A6zI/Qpv2iEn dxnjYeuL2AchIIfqljxBi6L1fMbHiBjCHygjux0PFpNZKV/W+37drW/r25fUZWuSNn7D 1PJA== X-Gm-Message-State: AOAM532n9cD0Ilkt0DUzpc/dB5PY/WBODF02+GEJWbdCMYHg9bP1Xa6U Wl1O2i5a5TY9tZrtIroGyZdPs8gXLDd8 X-Google-Smtp-Source: ABdhPJzCbvy3TlsCCC1ENscWrGWTXClq62iKwu8pToTV891HdLlKh5Rl3a8xK+72qtmxOd8TDK362KXAgy6e X-Received: from irogers.svl.corp.google.com ([2620:15c:2cd:202:57e:1dbb:34b4:8257]) (user=irogers job=sendgmr) by 2002:a25:b18e:: with SMTP id h14mr29366868ybj.744.1638931598466; Tue, 07 Dec 2021 18:46:38 -0800 (PST) Date: Tue, 7 Dec 2021 18:45:56 -0800 In-Reply-To: <20211208024607.1784932-1-irogers@google.com> Message-Id: <20211208024607.1784932-12-irogers@google.com> Mime-Version: 1.0 References: <20211208024607.1784932-1-irogers@google.com> X-Mailer: git-send-email 2.34.1.400.ga245620fadb-goog Subject: [PATCH 11/22] 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-kernel@vger.kernel.org Unused function so remove. 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.400.ga245620fadb-goog 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 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 2AE0FC433F5 for ; Wed, 8 Dec 2021 02:53:46 +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=4jm24+xBp46e5SZg/+3TPSVKCiF6IJqLf+Hkc0ETBIk=; b=vQX7+15733Hwu6P37/sW+m8MRt B+ioI0QFAqvGtiW0x1/K5T1EnN7tXnkQ75Z/Bg/fmM4XzmkVWpVvYZShFJzLTtVfMQw0gxAaY6GQ5 nbOimSpNoeS8xHo18/DYWFoGRhItv41XvNzCVfEvNYVSHsaG6NrUXR391tTLKFHNMxbsEf/vnj5nZ 0GA8zreig249CQOxkZOwXgWRSET+QoCM8f34uAgUvQFN9rbAk6xfHpznVrYvahCBTGeY8VrjoQM8P Iljsz8f276yQFmYS3M6qJ8RcdklTF6+fc1euP/zvb8o4mVRfdSO72TOl7qTBK3e4fuJ13zYS1dQqQ RpkJunBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mun3q-00AlrY-BR; Wed, 08 Dec 2021 02:52:03 +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 1mumyd-00AjJq-U2 for linux-arm-kernel@lists.infradead.org; Wed, 08 Dec 2021 02:46:41 +0000 Received: by mail-yb1-xb4a.google.com with SMTP id v20-20020a25fc14000000b005c2109e5ad1so2108305ybd.9 for ; Tue, 07 Dec 2021 18:46:39 -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=JDNiGhsNHgdmMUztfVS0cnfpFuxHbFnC3w+TxzcO4qI=; b=JJ7/x6DfuHkASvF7wwLFs0k6i+67I0tnw9tx9PMmghz72m5Sn13MHx/YhyOjfi+Zr8 SbC03NZPML15LTl1g3fxNoiQnFBYix6jL0tJhSL9vjfRNV9d+sRXhcX4EQtL+fF4uD5S frd4E+pDfSuJD/Mtpx4kHDsa81aCpq/49V629laKEw65BRMBPUXmeFIdkFt0c/9kPAH5 BxaBF2GOAWQpfq6VS4FWgSN2s6ARePKRkJOFh7rRJ3nejs9sX/S07EztA6JktNQu6t94 M6wXYcJsvH1v0Cx2s2YWOAB0ryUtrdXNshmjVYvI+oeDO8p9NCdj1jrtBtxufod4hrAd VtBg== 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=JDNiGhsNHgdmMUztfVS0cnfpFuxHbFnC3w+TxzcO4qI=; b=SUOZNL6ffhAyb5rRYYr8mJ1UZNFowOT3S6bmEZrBFzyNbJQppfrsHxXzGTisCVKLWW 6piWmALjp9G6U6LuWK48XwJq45UIOEqz3vfZvfrXooR589ziW9tcJr+9CkZTab/RPefI Ab7wKXSitivjI3YnLICElwHsPgW9mwk9FCUy6HFozkeiUSkOLQU0qCcoCtI+wFyZaCez ADqVnAPiiQolFYMpJFPVLZ9wv31YZzlGezDgQK0k8wTMQHC7AwTwnKbfGBAPyI8f+8A7 tGSLRRsD2yCU2Rps7Pf1uGLy+OZxFwpTdBFsnaHtMVIRNbXRSpRt1aXInDeKarYGRYrJ YESQ== X-Gm-Message-State: AOAM531YnIZS7Z4aICjindX0md+X3bQYOG/Cvm2500OXAKrUEMNtHH/t VcbZ73TmMoVeDq8sNU8GRUnDuBHsi8As X-Google-Smtp-Source: ABdhPJzCbvy3TlsCCC1ENscWrGWTXClq62iKwu8pToTV891HdLlKh5Rl3a8xK+72qtmxOd8TDK362KXAgy6e X-Received: from irogers.svl.corp.google.com ([2620:15c:2cd:202:57e:1dbb:34b4:8257]) (user=irogers job=sendgmr) by 2002:a25:b18e:: with SMTP id h14mr29366868ybj.744.1638931598466; Tue, 07 Dec 2021 18:46:38 -0800 (PST) Date: Tue, 7 Dec 2021 18:45:56 -0800 In-Reply-To: <20211208024607.1784932-1-irogers@google.com> Message-Id: <20211208024607.1784932-12-irogers@google.com> Mime-Version: 1.0 References: <20211208024607.1784932-1-irogers@google.com> X-Mailer: git-send-email 2.34.1.400.ga245620fadb-goog Subject: [PATCH 11/22] 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-20211207_184640_019636_6E8F6E14 X-CRM114-Status: UNSURE ( 9.73 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Unused function so remove. 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.400.ga245620fadb-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel