Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2472248rdb; Wed, 15 Nov 2023 01:28:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IHNnkq8tw3svv6W+9WYaCcZPSoon0kYY2vM6KYqu/8KoX3BPJ2TVSJFuZfN/OBBQ2fma2pb X-Received: by 2002:a05:6a00:2d1b:b0:6bd:2c0a:e82 with SMTP id fa27-20020a056a002d1b00b006bd2c0a0e82mr9912148pfb.7.1700040530927; Wed, 15 Nov 2023 01:28:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700040530; cv=none; d=google.com; s=arc-20160816; b=G6hzRLqpt5U6nZCMee9ASMjcFx1xHfo7MEQHJBgXvpLCv1l1o09WHu0CHnOS8LtREj Z9pM3E8qypT1+fEAK4yD8scU6IhqtEoll5kGg5km+sHq5aSmG+GL6ocJLgTQYVz4nerD nxGHn/0V6/ioMYq+EeIkkohySS7lREBdzIo21fU4drwOEjH86SezwOXkRuRoe1nJelTM bXakMOpvXCiLXGrGDmNjmMrdw/xuMTYs6/G+Zn3YD0sOwd4y6ejC/EM+n+94DSRI46hQ nP7KOqLxPIDGeK1reEeRvZpFg5zlWdI/Yn0zkv8W6T41MzWokcSyew7iYTVzPpmxoRKr UEdw== 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=pUjz0vRe2aqm0WDxROUOoKgVbGfIKsVrcf+gLcK+pJ8=; fh=ptSJPLL9EzMEHMmZv4oZsDrn7PmjNVXYQaI0dW3aMfU=; b=AxEWH2Lo+RjnGS6Cc2ZKc5mehyYIXjTOUqTZjCxgjl6MK2gQSYHpFP8MKiUXQgld+g r7V18RS+dtq382nB0bo+GjXCpb373lWBtMbjjL6tR95bbwGOdulsdWUOE8zWJxM8AB30 Y8FKFkZ0OwLVuwKWGBf+NQnE7AL+5pDF1+SlxgHOe/4FfcQHV5RJRmF+q/SBkrgL7sky OCf7EAbuXTAAIhQp27Lh8V/Z8WL5tb3a05CZBTYvfE+k4s/xeBwzNTFK/tbgiJRYluV8 dF693EJdass6fveWHw6wNzageTuW274qf5DXDKwhymATRjP2CHceEJJBS57KasBQd4T5 goWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id u13-20020a056a00098d00b006b2b53de986si10042584pfg.194.2023.11.15.01.28.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 01:28:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 758D08030E7E; Wed, 15 Nov 2023 01:28:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234786AbjKOJ2f (ORCPT + 99 others); Wed, 15 Nov 2023 04:28:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234801AbjKOJ2c (ORCPT ); Wed, 15 Nov 2023 04:28:32 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 17BAD116; Wed, 15 Nov 2023 01:28:29 -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 624CEDA7; Wed, 15 Nov 2023 01:29:14 -0800 (PST) Received: from a077893.arm.com (unknown [10.163.37.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 0EF813F7B4; Wed, 15 Nov 2023 01:28:23 -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 2/2] drivers: perf: arm_pmu: Drop 'pmu_lock' element from 'struct pmu_hw_events' Date: Wed, 15 Nov 2023 14:58:05 +0530 Message-Id: <20231115092805.737822-3-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231115092805.737822-1-anshuman.khandual@arm.com> References: <20231115092805.737822-1-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Wed, 15 Nov 2023 01:28:48 -0800 (PST) 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 --- 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