Skip to content

Commit 0259de6

Browse files
aloktiwawilldeacon
authored andcommitted
perf/cxlpmu: Fix typos in cxl_pmu.c comments and documentation
Fix several minor typo errors in comments: - Remove duplicated word "a" in "a a VID / GroupID". - Correct "Opcopdes" to "Opcodes" in CXL spec reference. - Fix spelling of "implemnted" to "implemented". Improves code readability and documentation consistency. Signed-off-by: Alok Tiwari <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 3e87081 commit 0259de6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/perf/cxl_pmu.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ struct cxl_pmu_info {
113113

114114
/*
115115
* All CPMU counters are discoverable via the Event Capabilities Registers.
116-
* Each Event Capability register contains a a VID / GroupID.
116+
* Each Event Capability register contains a VID / GroupID.
117117
* A counter may then count any combination (by summing) of events in
118118
* that group which are in the Supported Events Bitmask.
119119
* However, there are some complexities to the scheme.
@@ -406,7 +406,7 @@ static struct attribute *cxl_pmu_event_attrs[] = {
406406
CXL_PMU_EVENT_CXL_ATTR(s2m_bisnp_curblk, CXL_PMU_GID_S2M_BISNP, BIT(4)),
407407
CXL_PMU_EVENT_CXL_ATTR(s2m_bisnp_datblk, CXL_PMU_GID_S2M_BISNP, BIT(5)),
408408
CXL_PMU_EVENT_CXL_ATTR(s2m_bisnp_invblk, CXL_PMU_GID_S2M_BISNP, BIT(6)),
409-
/* CXL rev 3.1 Table 3-50 S2M NDR Opcopdes */
409+
/* CXL rev 3.1 Table 3-50 S2M NDR Opcodes */
410410
CXL_PMU_EVENT_CXL_ATTR(s2m_ndr_cmp, CXL_PMU_GID_S2M_NDR, BIT(0)),
411411
CXL_PMU_EVENT_CXL_ATTR(s2m_ndr_cmps, CXL_PMU_GID_S2M_NDR, BIT(1)),
412412
CXL_PMU_EVENT_CXL_ATTR(s2m_ndr_cmpe, CXL_PMU_GID_S2M_NDR, BIT(2)),
@@ -627,7 +627,7 @@ static void cxl_pmu_event_start(struct perf_event *event, int flags)
627627
hwc->state = 0;
628628

629629
/*
630-
* Currently only hdm filter control is implemnted, this code will
630+
* Currently only hdm filter control is implemented, this code will
631631
* want generalizing when more filters are added.
632632
*/
633633
if (info->filter_hdm) {

0 commit comments

Comments
 (0)