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: 13456422 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 98F16C07548 for ; Wed, 15 Nov 2023 09:28:51 +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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8LyllBkuHZH8j7oJuM40ty0q8aEvh7dQp6oS1s7TS4A=; b=Ro4iqrjz1y3n8i uWxC9MKm0uo7T6lN1BENZ40y5cyMOxe06aEL+A4FtSHdOiMttFz2P54ygtVG1pffhERkmVLqI1cn4 txYJ+OAfxQ9faXs5fqN9gOMc7bfQSUv5exWesyahpkgKztc+TyKFPmKHqpgmFFeiCSWkBKU6NFuV3 hUNECisaAiyjUusDGM6hxOeBfy3uxHPJZPDbSwoIDIhebce60sve2uLdNdtTOZQDmp9xK98VJj43I aOM3eoi2raplXyXwk4wj8JCnYn3GLQm+kN7nO+f+5ybY5sJaJx0YU+UpW4cGPf5eYxLuZKaupBajw 895XQ5d5w3NfTthAeC4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r3CC8-000KlZ-1E; Wed, 15 Nov 2023 09:28:24 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r3CC5-000Kku-0s for linux-arm-kernel@lists.infradead.org; Wed, 15 Nov 2023 09:28:23 +0000 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231115_012821_373513_DEC316F7 X-CRM114-Status: UNSURE ( 8.70 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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(-)