diff options
author | Ming Lei <[email protected]> | 2011-11-17 13:34:31 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2011-12-06 08:16:53 +0100 |
commit | 73839c5b2eacc15cb0aa79c69b285fc659fa8851 (patch) | |
tree | 460e38f3b8036b33a3bed5e4322ea1bb5ef4e3c8 /net/lapb/lapb_timer.c | |
parent | d3d03d4fc5b1bec3a579112de170a9676e9d97cb (diff) |
init/main.c: Execute lockdep_init() as early as possible
This patch fixes a lockdep warning on ARM platforms:
[ 0.000000] WARNING: lockdep init error! Arch code didn't call lockdep_init() early enough?
[ 0.000000] Call stack leading to lockdep invocation was:
[ 0.000000] [<c00164bc>] save_stack_trace_tsk+0x0/0x90
[ 0.000000] [<ffffffff>] 0xffffffff
The warning is caused by printk inside smp_setup_processor_id().
It is safe to do this because lockdep_init() doesn't depend on
smp_setup_processor_id(), so improve things that printk can be
called as early as possible without lockdep complaint.
Signed-off-by: Ming Lei <[email protected]>
Reviewed-by: Yong Zhang <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Andrew Morton <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions