Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35285581rwd; Mon, 10 Jul 2023 05:28:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlFCkwE31AEep/AETzDhG3FVdETPpYNioWbZobA88GM2BUMo07C5oaNI7Tn2mgHdWuasRS+P X-Received: by 2002:a17:906:1c17:b0:991:b554:e64b with SMTP id k23-20020a1709061c1700b00991b554e64bmr12024186ejg.54.1688992107435; Mon, 10 Jul 2023 05:28:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688992107; cv=none; d=google.com; s=arc-20160816; b=qnkbHRCtnDH3OCcCeG2uzRvV0POxoA//h/y0GTisIiLy6zMadao2BNcDCFk6rqiHIr NOjq5cCUe6AWNIdnq+2roEqungzrVxdcauDM7y22froeHagwI5/JM7Q7EAOV6trWiu/P ZRTmbEhFILXUArC8yRZyjmrTZqvdv3JXGZLR1dRMTHAFMlPFsFnNiCh9yIv1p2rjaAZt XtH3dFYh+P9RQdQiSodSFUeXG7ek34EE5EOjGANFi65LHKNVjwKrg6NG30mabuYVs0NB Ol8BduVT/b1Z3jZJeIJRSo44Ou9Zz77Im3KwR9yB5Ewo5bZGhisdDgPDFjWLhk8CUH8j SFBA== 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=frN+EMsR5nTQ7eQ945ALA9SX8QdNCRsos5u8C6OtS20=; fh=kgglI1VH9kXDBjmn5Au5+0gE4Ed28d3Mjok+pEOINHQ=; b=riDJovkcGScIukvuJwK0EC1WAzEpWzAPChl4A3twTslSJr+fTvXUeWJ63rN6zdbFTr eO9HJq33RzKR2zm9C95BbeRczcMFftsaApENnu6448jUZ5Sm+kDFgSSgn6F88R7XDjXU /WIW3AIRfTZ1flnKmckmGHVRj9hcgtDi6ZzKWRZbBKj4+kYXbjNw/pyecBoXFn+NJvrV Fm0Q2aOVTK8RRiyUowdmAqUpPRON/uVyDwFMEur2gYMNGVO+Rfca1bUnW0TYWuUE4lPs IKfnwk299Yg/4n4CwAuHZgZ6l9dMa140RTKKn7cduvFxBIXEIo4yB430guFgfjRZfaff PB1g== 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 h4-20020a1709067cc400b0098e0f735f52si8106993ejp.353.2023.07.10.05.28.02; Mon, 10 Jul 2023 05:28:27 -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 S231238AbjGJMWK (ORCPT + 99 others); Mon, 10 Jul 2023 08:22:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231205AbjGJMWH (ORCPT ); Mon, 10 Jul 2023 08:22:07 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 00289FF; Mon, 10 Jul 2023 05:22:05 -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 EF973113E; Mon, 10 Jul 2023 05:22:47 -0700 (PDT) Received: from e127643.arm.com (unknown [10.57.29.214]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D04C03F67D; Mon, 10 Jul 2023 05:22:02 -0700 (PDT) From: James Clark To: linux-perf-users@vger.kernel.org, irogers@google.com Cc: James Clark , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Thomas Gleixner , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Will Deacon , Kan Liang , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/4] perf/x86: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability Date: Mon, 10 Jul 2023 13:21:35 +0100 Message-Id: <20230710122138.1450930-3-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230710122138.1450930-1-james.clark@arm.com> References: <20230710122138.1450930-1-james.clark@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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 Since commit bd2756811766 ("perf: Rewrite core context handling") the relationship between perf_event_context and PMUs has changed so that the error scenario that PERF_PMU_CAP_HETEROGENEOUS_CPUS originally silenced no longer exists. Remove the capability to avoid confusion that it actually influences any perf core behavior. This change should be a no-op. Signed-off-by: James Clark --- arch/x86/events/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c index 9d248703cbdd..2353aaf0b248 100644 --- a/arch/x86/events/core.c +++ b/arch/x86/events/core.c @@ -2168,7 +2168,6 @@ static int __init init_hw_perf_events(void) hybrid_pmu->pmu = pmu; hybrid_pmu->pmu.type = -1; hybrid_pmu->pmu.attr_update = x86_pmu.attr_update; - hybrid_pmu->pmu.capabilities |= PERF_PMU_CAP_HETEROGENEOUS_CPUS; hybrid_pmu->pmu.capabilities |= PERF_PMU_CAP_EXTENDED_HW_TYPE; err = perf_pmu_register(&hybrid_pmu->pmu, hybrid_pmu->name, -- 2.34.1