perf_counter: initialize the per-cpu context earlier
authorIngo Molnar <mingo@elte.hu>
Mon, 4 May 2009 17:13:30 +0000 (19:13 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 4 May 2009 17:30:32 +0000 (19:30 +0200)
percpu scheduling for perfcounters wants to take the context lock,
but that lock first needs to be initialized. Currently it is an
early_initcall() - but that is too late, the task tick runs much
sooner than that.

Call it explicitly from the scheduler init sequence instead.

[ Impact: fix access-before-init crash ]

LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found