Messages in this thread | | | Subject | Re: [RFC][PATCH 2/8] perf, arch: Use early_initcall() for all arch pmu implementations | From | Will Deacon <> | Date | Fri, 26 Nov 2010 09:41:50 +0000 |
| |
On Thu, 2010-11-25 at 17:55 +0000, Peter Zijlstra wrote: > So the perf_event_init() site is _waaay_ to early to init stuff.. I > guess I'll move it all to early_initcall() and I'll move the watchdog to > an explicit call right after it. > > Something like the below,.. now I guess the question to all of you is, > can your arch pmu code cope with early_initcall() or does it need to be > some other place? > The ARM init code basically just parses the CPUID to work out what PMU is available, so it should be safe to call it as early as you like.
Will
| |