[PATCH x86] [8/16] Make lockdep_init __init

From: Andi Kleen
Date: Thu Jan 03 2008 - 10:45:18 EST



Cc: peterz@xxxxxxxxxxxxx
Signed-off-by: Andi Kleen <ak@xxxxxxx>

---
kernel/lockdep.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

Index: linux/kernel/lockdep.c
===================================================================
--- linux.orig/kernel/lockdep.c
+++ linux/kernel/lockdep.c
@@ -3023,7 +3023,7 @@ out_restore:
#define LARGEVAR(x,y) x = arch_early_alloc(sizeof(*x) * y)
#endif

-void lockdep_init_mem(void)
+void __init lockdep_init_mem(void)
{
LARGEVAR(stack_trace, MAX_STACK_TRACE_ENTRIES);
LARGEVAR(list_entries, MAX_LOCKDEP_ENTRIES);
@@ -3031,7 +3031,8 @@ void lockdep_init_mem(void)
LARGEVAR(lock_classes, MAX_LOCKDEP_KEYS);
LARGEVAR(chainhash_table, CHAINHASH_SIZE);
}
-void lockdep_init(void)
+
+void __init lockdep_init(void)
{
int i;

--
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/