init: Initialized IDR earlier
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 17 Nov 2010 22:17:35 +0000 (23:17 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Dec 2010 10:36:43 +0000 (11:36 +0100)
perf_event_init() wants to start using IDR trees, its needs in turn
are satisfied by mm_init().

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20101117222056.206992649@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
init/main.c

index 559e862865008a95bf114363f891954e62f5ce3b..ea51770c01701e312f70f9a81357babbf93fb865 100644 (file)
@@ -604,6 +604,7 @@ asmlinkage void __init start_kernel(void)
                                "enabled *very* early, fixing it\n");
                local_irq_disable();
        }
+       idr_init_cache();
        perf_event_init();
        rcu_init();
        radix_tree_init();
@@ -660,7 +661,6 @@ asmlinkage void __init start_kernel(void)
        enable_debug_pagealloc();
        kmemleak_init();
        debug_objects_mem_init();
-       idr_init_cache();
        setup_per_cpu_pageset();
        numa_policy_init();
        if (late_time_init)