Skip to content

Commit 90d6867

Browse files
Anshuman Khandualwilldeacon
authored andcommitted
perf: pmuv3: Remove comments from armv8pmu_[enable|disable]_event()
The comments in armv8pmu_[enable|disable]_event() are blindingly obvious, and does not contribute in making things any better. Let's drop them off. Functional change is not intended. 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 Suggested-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com> Link: https://lore.kernel.org/r/20230802090853.1190391-1-anshuman.khandual@arm.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent ac18ea1 commit 90d6867

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

drivers/perf/arm_pmuv3.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -721,38 +721,15 @@ static void armv8pmu_enable_event(struct perf_event *event)
721721
* Enable counter and interrupt, and set the counter to count
722722
* the event that we're interested in.
723723
*/
724-
725-
/*
726-
* Disable counter
727-
*/
728724
armv8pmu_disable_event_counter(event);
729-
730-
/*
731-
* Set event.
732-
*/
733725
armv8pmu_write_event_type(event);
734-
735-
/*
736-
* Enable interrupt for this counter
737-
*/
738726
armv8pmu_enable_event_irq(event);
739-
740-
/*
741-
* Enable counter
742-
*/
743727
armv8pmu_enable_event_counter(event);
744728
}
745729

746730
static void armv8pmu_disable_event(struct perf_event *event)
747731
{
748-
/*
749-
* Disable counter
750-
*/
751732
armv8pmu_disable_event_counter(event);
752-
753-
/*
754-
* Disable interrupt for this counter
755-
*/
756733
armv8pmu_disable_event_irq(event);
757734
}
758735

0 commit comments

Comments
 (0)