File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -649,6 +649,8 @@ static int cpumf_pmu_commit_txn(struct pmu *pmu)
649
649
650
650
/* Performance monitoring unit for s390x */
651
651
static struct pmu cpumf_pmu = {
652
+ .task_ctx_nr = perf_sw_context ,
653
+ .capabilities = PERF_PMU_CAP_NO_INTERRUPT ,
652
654
.pmu_enable = cpumf_pmu_enable ,
653
655
.pmu_disable = cpumf_pmu_disable ,
654
656
.event_init = cpumf_pmu_event_init ,
@@ -708,12 +710,6 @@ static int __init cpumf_pmu_init(void)
708
710
goto out ;
709
711
}
710
712
711
- /* The CPU measurement counter facility does not have overflow
712
- * interrupts to do sampling. Sampling must be provided by
713
- * external means, for example, by timers.
714
- */
715
- cpumf_pmu .capabilities |= PERF_PMU_CAP_NO_INTERRUPT ;
716
-
717
713
cpumf_pmu .attr_groups = cpumf_cf_event_group ();
718
714
rc = perf_pmu_register (& cpumf_pmu , "cpum_cf" , PERF_TYPE_RAW );
719
715
if (rc ) {
You can’t perform that action at this time.
0 commit comments