[tip:perf/core] init: Initialized IDR earlier

From: tip-bot for Peter Zijlstra
Date: Thu Dec 16 2010 - 07:33:07 EST


Commit-ID: 9f58a205c62d0dad1df38d076324a89b1a0f1d65
Gitweb: http://git.kernel.org/tip/9f58a205c62d0dad1df38d076324a89b1a0f1d65
Author: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
AuthorDate: Wed, 17 Nov 2010 23:17:35 +0100
Committer: Ingo Molnar <mingo@xxxxxxx>
CommitDate: Thu, 16 Dec 2010 11:36:43 +0100

init: Initialized IDR earlier

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@xxxxxxxxx>
LKML-Reference: <20101117222056.206992649@xxxxxxxxx>
Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
init/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/init/main.c b/init/main.c
index 559e862..ea51770 100644
--- a/init/main.c
+++ b/init/main.c
@@ -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)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/