lockdep: reduce the ifdeffery
Move code around to get fewer but larger #ifdef sections. Break some in-function #ifdefs out into their own functions. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
ca58abcb4a
commit
8e18257d29
2 changed files with 951 additions and 864 deletions
1813
kernel/lockdep.c
1813
kernel/lockdep.c
File diff suppressed because it is too large
Load diff
|
@ -271,8 +271,10 @@ static int lockdep_stats_show(struct seq_file *m, void *v)
|
|||
if (nr_list_entries)
|
||||
factor = sum_forward_deps / nr_list_entries;
|
||||
|
||||
#ifdef CONFIG_PROVE_LOCKING
|
||||
seq_printf(m, " dependency chains: %11lu [max: %lu]\n",
|
||||
nr_lock_chains, MAX_LOCKDEP_CHAINS);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_TRACE_IRQFLAGS
|
||||
seq_printf(m, " in-hardirq chains: %11u\n",
|
||||
|
|
Loading…
Reference in a new issue