Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3186628rwo; Mon, 24 Jul 2023 07:30:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlGUzgE6KwFupnn53YO72Owwm1CFF2CoBtF1KTz4Z892RxjfKsInVwILU3Z54ecR38zaZIsT X-Received: by 2002:a05:6e02:10c6:b0:345:d58d:9ae5 with SMTP id s6-20020a056e0210c600b00345d58d9ae5mr101876ilj.7.1690209014516; Mon, 24 Jul 2023 07:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690209014; cv=none; d=google.com; s=arc-20160816; b=e/qBBYSXuUlMc7SWrvxHoO/g8ND/pZPQDEzrRNvFoXkF4TTHDwQ3Ui/9C0stL3zTmL 2j+ClGDfZxAf/j2UYF3TBVWltl7gHgzfUZO1abAyqxKpcVW4dxU16h0Me0iwavuBNQIZ 93Gik6JjsCtW6slrgcxlE68/nw0/kZSmULXJvPD3v2SRRL9dkNYbvdCF4gLgTholwNGQ wb1O0BSXSPjKFTZniSF7pDAftB/AxN1/3Bwim/OvJdchwhlTC/x0jay1/MZl5fxaA+Z0 cgmwZFfzBvp4/STexjYKfVCtd+HaHJdK/JUMX7qa/e/ZnYo8xXs8no/q5C4z6QLoZCEs 7D+Q== 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=XiSsfMrvXtoAnBLOAfHUPhuzyVxj0ydzz2mIm+zkt8U=; fh=whuqqPDMCuf3pVIxi4ys9+C5pEOkF8a7QCuVDNap2s8=; b=0fdveeyy2PH/pN1fJ5t+OZo1sqiGipC2za6Isbq7hvaCDpcstk1WnaKVgMV0CQ7Wra xwe7tGj0YvUagcOGdKA20vlkP8Vkb8FtahUqOemD7Ytk2hAIzWcOXF4XUw2TMpqHxquG 7ZVrm5BvIeZrTZTi5wSzkLLg+3ED4UnEjpgRHbJMTukjpcZ1fW2OXRNOXRxMgDHSt5cv 5qFSbLpcW7Rh4MeyV1aXfmJ4VMrH6jAa+N7LUHLWL1+uckXkgoeqdrys4OvWK1TQdC+Z PHp2WawgtxKAfrIeE/487eBp7AHyaS6m12uaj2TEHC6hP8ywKj8ugPZvNpJBB4skbG/P LObw== 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 v30-20020a63481e000000b0055b0f40083csi8921444pga.639.2023.07.24.07.30.00; Mon, 24 Jul 2023 07:30:14 -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 S231833AbjGXNs0 (ORCPT + 99 others); Mon, 24 Jul 2023 09:48:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbjGXNsH (ORCPT ); Mon, 24 Jul 2023 09:48:07 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B941549CF; Mon, 24 Jul 2023 06:45:53 -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 2CE9815A1; Mon, 24 Jul 2023 06:46:02 -0700 (PDT) Received: from e127643.broadband (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 450813F67D; Mon, 24 Jul 2023 06:45:16 -0700 (PDT) From: James Clark To: linux-perf-users@vger.kernel.org, irogers@google.com, anshuman.khandual@arm.com, will@kernel.org 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" , Kan Liang , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 2/4] perf/x86: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability Date: Mon, 24 Jul 2023 14:44:57 +0100 Message-Id: <20230724134500.970496-3-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230724134500.970496-1-james.clark@arm.com> References: <20230724134500.970496-1-james.clark@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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. Acked-by: Ian Rogers 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