Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drivers: perf: arm_pmu: Drop 'pmu_lock' element from 'struct pmu_hw_events'

As 'pmu_lock' element is not being used in any ARM PMU implementation, just
drop this from 'struct pmu_hw_events'.

Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20231115092805.737822-3-anshuman.khandual@arm.com
Signed-off-by: Will Deacon <will@kernel.org>

authored by

Anshuman Khandual and committed by
Will Deacon
118eb89b 5cd7da19

-7
-1
drivers/perf/arm_pmu.c
··· 893 893 struct pmu_hw_events *events; 894 894 895 895 events = per_cpu_ptr(pmu->hw_events, cpu); 896 - raw_spin_lock_init(&events->pmu_lock); 897 896 events->percpu_pmu = pmu; 898 897 } 899 898
-6
include/linux/perf/arm_pmu.h
··· 60 60 DECLARE_BITMAP(used_mask, ARMPMU_MAX_HWEVENTS); 61 61 62 62 /* 63 - * Hardware lock to serialize accesses to PMU registers. Needed for the 64 - * read/modify/write sequences. 65 - */ 66 - raw_spinlock_t pmu_lock; 67 - 68 - /* 69 63 * When using percpu IRQs, we need a percpu dev_id. Place it here as we 70 64 * already have to allocate this struct per cpu. 71 65 */