예제 #1
0
static int init_e6500_pmu(void)
{
	if ((!cur_cpu_spec->oprofile_cpu_type) ||
		(strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc/e6500")))
		return -ENODEV;

	return register_fsl_emb_pmu(&e6500_pmu);
}
예제 #2
0
static int init_e500_pmu(void)
{
	if (!cur_cpu_spec->oprofile_cpu_type)
		return -ENODEV;

	if (!strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc/e500mc"))
		num_events = 256;
	else if (strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc/e500"))
		return -ENODEV;

	return register_fsl_emb_pmu(&e500_pmu);
}