|
@@ -404,7 +404,7 @@ static void nest_imc_counters_release(struct perf_event *event)
|
|
|
rc = opal_imc_counters_stop(OPAL_IMC_COUNTERS_NEST,
|
|
|
get_hard_smp_processor_id(event->cpu));
|
|
|
if (rc) {
|
|
|
- mutex_unlock(&nest_imc_refc[node_id].lock);
|
|
|
+ mutex_unlock(&ref->lock);
|
|
|
pr_err("nest-imc: Unable to stop the counters for core %d\n", node_id);
|
|
|
return;
|
|
|
}
|
|
@@ -487,7 +487,7 @@ static int nest_imc_event_init(struct perf_event *event)
|
|
|
rc = opal_imc_counters_start(OPAL_IMC_COUNTERS_NEST,
|
|
|
get_hard_smp_processor_id(event->cpu));
|
|
|
if (rc) {
|
|
|
- mutex_unlock(&nest_imc_refc[node_id].lock);
|
|
|
+ mutex_unlock(&ref->lock);
|
|
|
pr_err("nest-imc: Unable to start the counters for node %d\n",
|
|
|
node_id);
|
|
|
return rc;
|