|
@@ -3334,6 +3334,8 @@ static int __init uncore_type_init(struct intel_uncore_type *type)
|
|
if (!pmus)
|
|
if (!pmus)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
|
|
|
|
|
|
+ type->pmus = pmus;
|
|
|
|
+
|
|
type->unconstrainted = (struct event_constraint)
|
|
type->unconstrainted = (struct event_constraint)
|
|
__EVENT_CONSTRAINT(0, (1ULL << type->num_counters) - 1,
|
|
__EVENT_CONSTRAINT(0, (1ULL << type->num_counters) - 1,
|
|
0, type->num_counters, 0, 0);
|
|
0, type->num_counters, 0, 0);
|
|
@@ -3369,7 +3371,6 @@ static int __init uncore_type_init(struct intel_uncore_type *type)
|
|
}
|
|
}
|
|
|
|
|
|
type->pmu_group = &uncore_pmu_attr_group;
|
|
type->pmu_group = &uncore_pmu_attr_group;
|
|
- type->pmus = pmus;
|
|
|
|
return 0;
|
|
return 0;
|
|
fail:
|
|
fail:
|
|
uncore_type_exit(type);
|
|
uncore_type_exit(type);
|