aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/lockdep_proc.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2007-07-19 04:48:54 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-19 13:04:49 -0400
commit8e18257d29238311e82085152741f0c3aa18b74d (patch)
tree4c3e43b3b001763b4280a4b6d754387a52fb4d73 /kernel/lockdep_proc.c
parentca58abcb4a6d52ee2db1b1130cea3ca2a76677b9 (diff)
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>
Diffstat (limited to 'kernel/lockdep_proc.c')
-rw-r--r--kernel/lockdep_proc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/lockdep_proc.c b/kernel/lockdep_proc.c
index 58f35e586ee3..2fde34127e2e 100644
--- a/kernel/lockdep_proc.c
+++ b/kernel/lockdep_proc.c
@@ -271,8 +271,10 @@ static int lockdep_stats_show(struct seq_file *m, void *v)
271 if (nr_list_entries) 271 if (nr_list_entries)
272 factor = sum_forward_deps / nr_list_entries; 272 factor = sum_forward_deps / nr_list_entries;
273 273
274#ifdef CONFIG_PROVE_LOCKING
274 seq_printf(m, " dependency chains: %11lu [max: %lu]\n", 275 seq_printf(m, " dependency chains: %11lu [max: %lu]\n",
275 nr_lock_chains, MAX_LOCKDEP_CHAINS); 276 nr_lock_chains, MAX_LOCKDEP_CHAINS);
277#endif
276 278
277#ifdef CONFIG_TRACE_IRQFLAGS 279#ifdef CONFIG_TRACE_IRQFLAGS
278 seq_printf(m, " in-hardirq chains: %11u\n", 280 seq_printf(m, " in-hardirq chains: %11u\n",