From patchwork Wed Nov 15 09:28:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 16595 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp2421659vqg; Wed, 15 Nov 2023 01:28:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IF+UkAU5pQuSsnw72U3rMd4K0BgWmENJ+ZiGE2rrMvvWWjYcdn99M4dWV9DuEOj4Eu+DyIx X-Received: by 2002:a05:6e02:1bc9:b0:359:310d:2cbf with SMTP id x9-20020a056e021bc900b00359310d2cbfmr16715182ilv.5.1700040508814; Wed, 15 Nov 2023 01:28:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700040508; cv=none; d=google.com; s=arc-20160816; b=SGmnbA+mDzaZH8fIzMSOcuUz9s/VRd1F2K+b0g87rc/0oHQcnAUzKPI3z3hYLvtiGH nK2/siShmLVwbj6u81SPg09KTZwHk/KS1YyEF0IIIJba6pE3ZnTg0gT14t/fFlOMsNJT GRvLrs0VP8O4OTbguz7nsr6bMb5mzt2XaFiMXRxxE/nDS6djASLZR3Gr3dz7QRDCP8I+ ryOQMf4g/O8U+4cB/SFqECpfYMvUSVcjCBzFMQgTw0anF3+oggXzgpIfpUtTwLGBpNvS +ONkgn7/2ezuuUNmBjOf8RgHhEt3bwh4N3fMSIFmURVpnHFhoaeItgh0/IgHjE1tDsqc 3zhA== 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 :message-id:date:subject:cc:to:from; bh=FUpbafZd1ido+IUiTB6QWnnD3U/JF+L+AXmXRUclSPQ=; fh=ptSJPLL9EzMEHMmZv4oZsDrn7PmjNVXYQaI0dW3aMfU=; b=AbFkpMgMKlv3D9ghsuQqxRUdudtVQ5iXmp8jCXvFsS5sQnipUO4dgHjJgKlrR4m0Ml fA3a44nbP+nzg5Zly998+xCVgIeRzkKerm1ApVn6N4UPh/cw23WlkudGH+TOQXSWkxp3 agmAR69M1kiKL3hpxF+XU+AUa2vDBKRSkvhtaSNwJfBbdSRORD5jmvpYXrwhPnpBcuXi hSVUBYwhB+gK4Q2G0XQu1FuXEQHOuc8GkalcdEAFFIJiQQn+mYbX+hSAZTIQeoztBfaj 5v5sz0FJEax+RMKtWcUcQC66vPlYAxM3ALEicdqU85ISJG18dlicdS9TCqoFautfeNIw 2ETQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id q9-20020a056a00088900b006c3b70b6433si10077935pfj.206.2023.11.15.01.28.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 01:28:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 925F281389A2; Wed, 15 Nov 2023 01:28:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234750AbjKOJ2X (ORCPT + 28 others); Wed, 15 Nov 2023 04:28:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234688AbjKOJ2W (ORCPT ); Wed, 15 Nov 2023 04:28:22 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0FFE89B; Wed, 15 Nov 2023 01:28:18 -0800 (PST) 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 ACB29DA7; Wed, 15 Nov 2023 01:29:02 -0800 (PST) Received: from a077893.arm.com (unknown [10.163.37.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B3DB63F7B4; Wed, 15 Nov 2023 01:28:13 -0800 (PST) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org Cc: Anshuman Khandual , Mark Rutland , Will Deacon , Russell King , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] drivers: perf: arm_pmu: Drop 'pmu_lock' element from 'struct pmu_hw_events' Date: Wed, 15 Nov 2023 14:58:03 +0530 Message-Id: <20231115092805.737822-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 15 Nov 2023 01:28:27 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782621676555688806 X-GMAIL-MSGID: 1782621676555688806 This series drops 'pmu_lock' usage from all arm platforms which had already been dropped from arm64 platforms earlier via the following commit. commit 2a0e2a02e4b7 ("arm64: perf: Remove PMU locking"). Afterwards, drop unused 'pmu_lock' element from 'struct pmu_hw_events'. The series applies on 6.7-rc1 and has been tested on arm64. Although just build tested for arm platform. Cc: Mark Rutland Cc: Will Deacon Cc: Russell King Cc: linux-perf-users@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Changes in V1: - Added some build warning fixes RFC V1: https://lore.kernel.org/all/20231016052431.1390269-1-anshuman.khandual@arm.com/ Anshuman Khandual (2): arm: perf: Remove PMU locking drivers: perf: arm_pmu: Drop 'pmu_lock' element from 'struct pmu_hw_events' arch/arm/kernel/perf_event_v6.c | 28 ++++-------------- arch/arm/kernel/perf_event_v7.c | 44 ----------------------------- arch/arm/kernel/perf_event_xscale.c | 44 ++++++----------------------- drivers/perf/arm_pmu.c | 1 - include/linux/perf/arm_pmu.h | 6 ---- 5 files changed, 13 insertions(+), 110 deletions(-)