Skip to content

Commit 0cb52ad

Browse files
James-A-ClarkPeter Zijlstra
authored andcommitted
perf: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability
Since commit bd27568 ("perf: Rewrite core context handling") the relationship between perf_event_context and PMUs has changed so that the error scenario that PERF_PMU_CAP_HETEROGENEOUS_CPUS originally silenced no longer exists. Remove the capability to avoid confusion that it actually influences any perf core behavior and shift down the following capability bits to fill in the unused space. This change should be a no-op. Signed-off-by: James Clark <james.clark@arm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com> Acked-by: Ian Rogers <irogers@google.com> Link: https://lore.kernel.org/r/20230724134500.970496-5-james.clark@arm.com
1 parent 80391d8 commit 0cb52ad

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

include/linux/perf_event.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,9 @@ struct perf_event_pmu_context;
288288
#define PERF_PMU_CAP_EXTENDED_REGS 0x0008
289289
#define PERF_PMU_CAP_EXCLUSIVE 0x0010
290290
#define PERF_PMU_CAP_ITRACE 0x0020
291-
#define PERF_PMU_CAP_HETEROGENEOUS_CPUS 0x0040
292-
#define PERF_PMU_CAP_NO_EXCLUDE 0x0080
293-
#define PERF_PMU_CAP_AUX_OUTPUT 0x0100
294-
#define PERF_PMU_CAP_EXTENDED_HW_TYPE 0x0200
291+
#define PERF_PMU_CAP_NO_EXCLUDE 0x0040
292+
#define PERF_PMU_CAP_AUX_OUTPUT 0x0080
293+
#define PERF_PMU_CAP_EXTENDED_HW_TYPE 0x0100
295294

296295
struct perf_output_handle;
297296

0 commit comments

Comments
 (0)