Re: [PATCH 2/3] introduce intel_rapl driver

From: Peter Zijlstra
Date: Thu May 26 2011 - 06:22:24 EST


On Thu, 2011-05-26 at 11:43 +0200, Peter Zijlstra wrote:
> > + for(id = 0; id < RAPL_DOMAIN_MAX; id++)
> > + if (rapl_domains[id].valid)
> > + perf_pmu_register(&(rapl_domains[id].pmu), rapl_domains[id].pmu.name, PERF_TYPE_SOFTWARE);
>
> Uhm, hell no!, you get to use type = -1.

Also, you don't need a struct pmu per domain.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/