aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/lockdep.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2011-12-20 14:32:03 -0500
committerIngo Molnar <mingo@elte.hu>2011-12-20 14:32:11 -0500
commitd87f69a16eb2cb96459117b06949a560679002e4 (patch)
treebbb55b2bd2b6c9e8bd4067aa3279783cb6bd9028 /kernel/lockdep.c
parent124ba9403318d834ef21bcd899c22c870708d2c4 (diff)
parent384703b8e6cd4c8ef08512e596024e028c91c339 (diff)
Merge commit 'v3.2-rc6' into perf/core
Merge reason: Update with the latest fixes. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/lockdep.c')
-rw-r--r--kernel/lockdep.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index d2fab46a1c94..24f176c9fc9f 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -44,6 +44,7 @@
44#include <linux/stringify.h> 44#include <linux/stringify.h>
45#include <linux/bitops.h> 45#include <linux/bitops.h>
46#include <linux/gfp.h> 46#include <linux/gfp.h>
47#include <linux/kmemcheck.h>
47 48
48#include <asm/sections.h> 49#include <asm/sections.h>
49 50
@@ -2944,7 +2945,12 @@ static int mark_lock(struct task_struct *curr, struct held_lock *this,
2944void lockdep_init_map(struct lockdep_map *lock, const char *name, 2945void lockdep_init_map(struct lockdep_map *lock, const char *name,
2945 struct lock_class_key *key, int subclass) 2946 struct lock_class_key *key, int subclass)
2946{ 2947{
2947 memset(lock, 0, sizeof(*lock)); 2948 int i;
2949
2950 kmemcheck_mark_initialized(lock, sizeof(*lock));
2951
2952 for (i = 0; i < NR_LOCKDEP_CACHING_CLASSES; i++)
2953 lock->class_cache[i] = NULL;
2948 2954
2949#ifdef CONFIG_LOCK_STAT 2955#ifdef CONFIG_LOCK_STAT
2950 lock->cpu = raw_smp_processor_id(); 2956 lock->cpu = raw_smp_processor_id();