Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2592333rdb; Mon, 4 Dec 2023 01:46:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFSbmLFw4BiF9Zpc4ClDDBbEF5ZT6tci8HUjFpxf4BkaDu7CcWFcAGW3SvL7VcPvqU2H/yj X-Received: by 2002:a05:6358:896:b0:170:911:8b80 with SMTP id m22-20020a056358089600b0017009118b80mr3523282rwj.28.1701683190627; Mon, 04 Dec 2023 01:46:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701683190; cv=none; d=google.com; s=arc-20160816; b=GfkFqx58+TxEUGnG5miY4UbjTVcTNfeW7MlneUg4nhm8Dw6BKyhDuVJgiP38qY11D3 07vhwiqrm75thTExN48pDSZh5uPIPLrmmnGWdQoggsBAtPklgzDBGM8+irt9WzqIPCG6 4U5ox0l73xGA6BWzwJmafXBgBUL1DJwZi7UZvAq/7oGH+V2u9yEAP7r91jgLR7tDddOP 3X2aruRSGde8ep32DXIQf403QXf17BiZCarzooptv/a8ejYn5gQwQ1RkRSOlb7I9DZlO b3IDFpjTIxufHj3PeV6o0A2c/8wEAPZklYnOghoevbajqyUmETOIOSDHUs2GHaUbcvTq Kf7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=iXrW5z2umjas1PVhlY5Q6Sn/8ChA5VN36QFDRHVo7R0=; fh=goQrBEBAXH4mnhPT54cd77Pb6HH9He8Yo0wGK7n2Ld4=; b=Zd7pxeJFNoYtfJh7QQGrkuppa6ODaA9SDL2XzmKCJ0djZPTxcpLD+0MhGjzpWOJ1DQ pTnksmGnMEBvIPWqNCXX75KObQ9oOB1oJt5EU1+2lPxvpJKuv0/7wY0WE+qU9WI5lGbd RO6apq487daEpPHrVpm3G1uAx5+/B5aNlLKQ6+5nvj6aiTpJFRZYVhfgIyxI5u7XZrNb gqbmCbSEVwbYiqa1KShA78n+Y3dw2sqTqPvKiFGcXmHMxFcgcG8a0jn6HdyQi9ceVbBs 3YN7ML69PaLzsGKptD/Jxxh7CHrRnH/CQP4SOylvUgTG3vdkOmUGIVRTTKWtW+YCXS3G /VSQ== 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 Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id z14-20020a63e54e000000b005c21d7d1114si7941009pgj.818.2023.12.04.01.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 01:46:30 -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 6D05A806A40C; Mon, 4 Dec 2023 01:46:04 -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 S230151AbjLDJpx (ORCPT + 99 others); Mon, 4 Dec 2023 04:45:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbjLDJpw (ORCPT ); Mon, 4 Dec 2023 04:45:52 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 89827B3; Mon, 4 Dec 2023 01:45:58 -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 92E45FEC; Mon, 4 Dec 2023 01:46:45 -0800 (PST) Received: from FVFF77S0Q05N (unknown [10.57.44.129]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 443083F6C4; Mon, 4 Dec 2023 01:45:57 -0800 (PST) Date: Mon, 4 Dec 2023 09:45:54 +0000 From: Mark Rutland To: Anshuman Khandual Cc: linux-arm-kernel@lists.infradead.org, Will Deacon , Russell King , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] drivers: perf: arm_pmu: Drop 'pmu_lock' element from 'struct pmu_hw_events' Message-ID: References: <20231115092805.737822-1-anshuman.khandual@arm.com> <20231115092805.737822-3-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231115092805.737822-3-anshuman.khandual@arm.com> 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 04 Dec 2023 01:46:04 -0800 (PST) On Wed, Nov 15, 2023 at 02:58:05PM +0530, Anshuman Khandual wrote: > As 'pmu_lock' element is not being used in any ARM PMU implementation, just > drop this from 'struct pmu_hw_events'. > > Cc: Will Deacon > Cc: Mark Rutland > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Anshuman Khandual Acked-by: Mark Rutland Mark. > --- > drivers/perf/arm_pmu.c | 1 - > include/linux/perf/arm_pmu.h | 6 ------ > 2 files changed, 7 deletions(-) > > diff --git a/drivers/perf/arm_pmu.c b/drivers/perf/arm_pmu.c > index d712a19e47ac..379479b50bdd 100644 > --- a/drivers/perf/arm_pmu.c > +++ b/drivers/perf/arm_pmu.c > @@ -893,7 +893,6 @@ struct arm_pmu *armpmu_alloc(void) > struct pmu_hw_events *events; > > events = per_cpu_ptr(pmu->hw_events, cpu); > - raw_spin_lock_init(&events->pmu_lock); > events->percpu_pmu = pmu; > } > > diff --git a/include/linux/perf/arm_pmu.h b/include/linux/perf/arm_pmu.h > index 143fbc10ecfe..e2503d48ddee 100644 > --- a/include/linux/perf/arm_pmu.h > +++ b/include/linux/perf/arm_pmu.h > @@ -59,12 +59,6 @@ struct pmu_hw_events { > */ > DECLARE_BITMAP(used_mask, ARMPMU_MAX_HWEVENTS); > > - /* > - * Hardware lock to serialize accesses to PMU registers. Needed for the > - * read/modify/write sequences. > - */ > - raw_spinlock_t pmu_lock; > - > /* > * When using percpu IRQs, we need a percpu dev_id. Place it here as we > * already have to allocate this struct per cpu. > -- > 2.25.1 >