• Ingo Molnar's avatar
    perf_counter: initialize the per-cpu context earlier · 0d905bca
    Ingo Molnar authored
    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: default avatarIngo Molnar <mingo@elte.hu>
    0d905bca
sched.c 251 KB