|
@@ -1558,7 +1558,6 @@ void nhmex_rbox_alter_er(struct intel_uncore_box *box, struct perf_event *event)
|
|
|
{
|
|
|
struct hw_perf_event *hwc = &event->hw;
|
|
|
struct hw_perf_event_extra *reg1 = &hwc->extra_reg;
|
|
|
- int port;
|
|
|
|
|
|
/* adjust the main event selector and extra register index */
|
|
|
if (reg1->idx % 2) {
|
|
@@ -1570,7 +1569,6 @@ void nhmex_rbox_alter_er(struct intel_uncore_box *box, struct perf_event *event)
|
|
|
}
|
|
|
|
|
|
/* adjust extra register config */
|
|
|
- port = reg1->idx / 6 + box->pmu->pmu_idx * 4;
|
|
|
switch (reg1->idx % 6) {
|
|
|
case 2:
|
|
|
/* shift the 8~15 bits to the 0~7 bits */
|