aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/lockdep.c
diff options
context:
space:
mode:
authorMing Lei <tom.leiming@gmail.com>2009-07-16 09:44:29 -0400
committerPeter Zijlstra <a.p.zijlstra@chello.nl>2009-07-24 04:51:52 -0400
commit4dd861d6467007681991d8ec079d928db2018cbb (patch)
treef02f8d4ea7779c159d4cbdf67da76ab31f14ba6e /kernel/lockdep.c
parentef681026ff85c49b7399ceec3eb62bbbcce605e8 (diff)
lockdep: Update memory usage introduced by BFS
Also account the BFS memory usage. Signed-off-by: Ming Lei <tom.leiming@gmail.com> [ fix build for !PROVE_LOCKING ] Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <1246201486-7308-9-git-send-email-tom.leiming@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/lockdep.c')
-rw-r--r--kernel/lockdep.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index b896f23e00cf..6358cf7e84b2 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -3429,7 +3429,11 @@ void __init lockdep_info(void)
3429 sizeof(struct list_head) * CLASSHASH_SIZE + 3429 sizeof(struct list_head) * CLASSHASH_SIZE +
3430 sizeof(struct lock_list) * MAX_LOCKDEP_ENTRIES + 3430 sizeof(struct lock_list) * MAX_LOCKDEP_ENTRIES +
3431 sizeof(struct lock_chain) * MAX_LOCKDEP_CHAINS + 3431 sizeof(struct lock_chain) * MAX_LOCKDEP_CHAINS +
3432 sizeof(struct list_head) * CHAINHASH_SIZE) / 1024); 3432 sizeof(struct list_head) * CHAINHASH_SIZE) / 1024
3433#ifdef CONFIG_PROVE_LOCKING
3434 + sizeof(struct circular_queue) + sizeof(bfs_accessed)
3435#endif
3436 );
3433 3437
3434 printk(" per task-struct memory footprint: %lu bytes\n", 3438 printk(" per task-struct memory footprint: %lu bytes\n",
3435 sizeof(struct held_lock) * MAX_LOCK_DEPTH); 3439 sizeof(struct held_lock) * MAX_LOCK_DEPTH);