File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,6 @@ static int rapl_pkg_hw_unit[NR_RAPL_PKG_DOMAINS] __read_mostly;
150
150
static struct rapl_pmus * rapl_pmus_pkg ;
151
151
static unsigned int rapl_pkg_cntr_mask ;
152
152
static u64 rapl_timer_ms ;
153
- static struct perf_msr * rapl_msrs ;
154
153
static struct rapl_model * rapl_model ;
155
154
156
155
/*
@@ -382,7 +381,7 @@ static int rapl_pmu_event_init(struct perf_event *event)
382
381
return - EINVAL ;
383
382
384
383
event -> pmu_private = rapl_pmu ;
385
- event -> hw .event_base = rapl_msrs [bit ].msr ;
384
+ event -> hw .event_base = rapl_model -> rapl_pkg_msrs [bit ].msr ;
386
385
event -> hw .config = cfg ;
387
386
event -> hw .idx = bit ;
388
387
@@ -811,9 +810,7 @@ static int __init rapl_pmu_init(void)
811
810
812
811
rapl_model = (struct rapl_model * ) id -> driver_data ;
813
812
814
- rapl_msrs = rapl_model -> rapl_pkg_msrs ;
815
-
816
- rapl_pkg_cntr_mask = perf_msr_probe (rapl_msrs , PERF_RAPL_PKG_EVENTS_MAX ,
813
+ rapl_pkg_cntr_mask = perf_msr_probe (rapl_model -> rapl_pkg_msrs , PERF_RAPL_PKG_EVENTS_MAX ,
817
814
false, (void * ) & rapl_model -> pkg_events );
818
815
819
816
ret = rapl_check_hw_unit ();
You can’t perform that action at this time.
0 commit comments