Message ID | 20211230072030.302559-14-irogers@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 BB588C433EF for <linux-arm-kernel@archiver.kernel.org>; Thu, 30 Dec 2021 07:28:49 +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=hxbF+QT1f/D8Qkf3MoAaN+Ih2RStignQEk3WqC6RmFI=; b=CTz2mnd5XzLwr8Au0T9ks2zeMl 3/xuc+7qukQLOYQDAnFpUqMxk0DmDUfsOlPzMDhwOs14ORL4hJUeW1WN8JDefdmmxUQs6H0RrCZhA gfIie9FcqRvqI3f9rIBpyYWD6ePFtKSRFCpWYzQr4D8e2olt0cZGsT6bLIG2HZL5Nq2uK1ExvdJI+ i4QKRDGxK8bsqV4iHunBQd9ZHgqzBsLcOIpP2A+A2I482BTmXnNdGZHD3wO8H+9GiLtTowXwYjqUc cLDqKfkH6wNvodERz0CmcxHzRo5SdVnN4ykPamptI5+U4moOoRt5o2Wthh8pQjhdyqTXjTJELPYIy H0xWN/5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n2pqL-003mBi-M8; Thu, 30 Dec 2021 07:27:22 +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 1n2pkM-003jcT-9L for linux-arm-kernel@lists.infradead.org; Thu, 30 Dec 2021 07:21:11 +0000 Received: by mail-yb1-xb4a.google.com with SMTP id s7-20020a5b0447000000b005fb83901511so42326878ybp.11 for <linux-arm-kernel@lists.infradead.org>; Wed, 29 Dec 2021 23:21:09 -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=4MpQqbzavNLo0+7JIiR5CNmzapIg19tJzrEy7JBYf1M=; b=kXoA13WOKQIftVzZWO4HPUuV3ZzbRFc766qGcXsU5lIzsbLaWePjPAChzhTjJw18XB ezxaXy4Uv1c2Du76Ko4gwC91vIrvCM3ggm9zIVTJr4hexeJm4z6dvMdozbh8tGvq+zmd /QnB9H3gMb1zivqVAQeXMeGVnxlaHXv8Y/wELEKdnZWWfFBJBztyK0Z95UQkaz7Y1oOE W6ki6PrsFwHa4/GIZfRZCPC72h4gi1/a62TR89XKPRzbO5VWS/+G836nopw/oJN2MBJC CypKer12qZ2GIMtMWwW1YMrCovGqMQLyh5XqpGWQL7eSMObFVRg7vZAcaLpiqcHRikLJ hRig== 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=4MpQqbzavNLo0+7JIiR5CNmzapIg19tJzrEy7JBYf1M=; b=5AUvULGI/VLUPwfeRBy4FyNKFHPOoFzDZVCFnaD4gciceZCo8b4t6B+wu7+FFg0Hce nAxpt6EVws9IrY2SycwDRfu0728Zertx1HtTOcM68bqXANwO0+mF8RvAoqqWVeItU7tF iyVezmR8GSChDEOyB8U1FwCNTRkl3QoRgrY/GaE+u9yZOWT4mXmhr7ooyvnWxjdDZ34a qu3Za57fAdUCUbgPgMLc0mCZ2GBVPuGftC/44PTR6boaAL/OBuCEKxiUjDD6+ng75TLB 51bS70GPVc79k+7RURbBxs15wtYf+um15nQhpO8+CV0BK85OP+3/iUz+n08YDmTVpFtj utVw== X-Gm-Message-State: AOAM530/jhs9ZT1UExpAujVBMKxtY6N10iRfSVuUgxi0PtR5j0f+mlaP T4Ms5/u6zxZmNlKCHanXqUPV40Bpxaam X-Google-Smtp-Source: ABdhPJwE0WxTfbpAvt6d/swn2WJ5h727lammLK2k1Me4z1oYDnY4PoE78/VcpLfmw8FLS4n+YKUA4Mk3yljz X-Received: from irogers.svl.corp.google.com ([2620:15c:2cd:202:31c4:9539:dba1:a82b]) (user=irogers job=sendgmr) by 2002:a25:cdc3:: with SMTP id d186mr34482066ybf.400.1640848868720; Wed, 29 Dec 2021 23:21:08 -0800 (PST) Date: Wed, 29 Dec 2021 23:19:54 -0800 In-Reply-To: <20211230072030.302559-1-irogers@google.com> Message-Id: <20211230072030.302559-14-irogers@google.com> Mime-Version: 1.0 References: <20211230072030.302559-1-irogers@google.com> X-Mailer: git-send-email 2.34.1.448.ga2b2bfdf31-goog Subject: [PATCH v3 12/48] perf cpumap: Remove unused cpu_map__socket From: Ian Rogers <irogers@google.com> To: Andi Kleen <ak@linux.intel.com>, Jiri Olsa <jolsa@redhat.com>, Namhyung Kim <namhyung@kernel.org>, John Garry <john.garry@huawei.com>, Kajol Jain <kjain@linux.ibm.com>, "Paul A . Clarke" <pc@us.ibm.com>, Arnaldo Carvalho de Melo <acme@kernel.org>, Riccardo Mancini <rickyman7@gmail.com>, Kan Liang <kan.liang@linux.intel.com>, Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Mark Rutland <mark.rutland@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Vineet Singh <vineet.singh@intel.com>, James Clark <james.clark@arm.com>, Mathieu Poirier <mathieu.poirier@linaro.org>, Suzuki K Poulose <suzuki.poulose@arm.com>, Mike Leach <mike.leach@linaro.org>, Leo Yan <leo.yan@linaro.org>, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, zhengjun.xing@intel.com Cc: eranian@google.com, Ian Rogers <irogers@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211229_232110_349584_23475675 X-CRM114-Status: UNSURE ( 9.84 ) 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: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Refactor perf cpumap
|
expand
|
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);