Re: [RFC PATCH 2/3 v3] perf: Implement Nehalem uncore pmu

Lin Ming
2010-12-10T08:24:32Z

On Fri, 2010-12-10 at 03:24 +0800, Peter Zijlstra wrote:
> On Thu, 2010-12-02 at 13:20 +0800, Lin Ming wrote:
> > +++ b/arch/x86/kernel/cpu/perf_event.c
>
> > @@ -1362,6 +1357,7 @@ int __init init_hw_perf_events(void)
> >
> > switch (boot_cpu_data.x86_vendor) {
> > case X86_VENDOR_INTEL:
> > + init_uncore_pmu();
> > err = intel_pmu_init();
> > break;
> > case X86_VENDOR_AMD:
>
> Since you're otherwise fully separated from the regular cpu driver,
> could you also grow your own early_initcall() ?

OK, will use early_initcall().