static enum cpuhp_state hp_online;
struct etm4_init_arg {
+ unsigned int pid;
struct etmv4_drvdata *drvdata;
struct csdev_access *csa;
};
etm4_os_unlock_csa(drvdata, csa);
etm4_cs_unlock(drvdata, csa);
+ etm4_check_arch_features(drvdata, init_arg->pid);
+
/* find all capabilities of the tracing unit */
etmidr0 = etm4x_relaxed_read32(csa, TRCIDR0);
init_arg.drvdata = drvdata;
init_arg.csa = &desc.access;
+ init_arg.pid = etm_pid;
if (smp_call_function_single(drvdata->cpu,
etm4_init_arch_data, &init_arg, 1))
drvdata->boot_enable = true;
}
- etm4_check_arch_features(drvdata, etm_pid);
-
return 0;
}