Merge branch 'linus' into tracing/core
Merge reason: tracing/core was on a .30-rc1 base and was missing out on
on a handful of tracing fixes present in .30-rc5-almost.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
+14
-8
@@ -2492,13 +2492,20 @@ static int mark_lock(struct task_struct *curr, struct held_lock *this,
|
||||
void lockdep_init_map(struct lockdep_map *lock, const char *name,
|
||||
struct lock_class_key *key, int subclass)
|
||||
{
|
||||
if (unlikely(!debug_locks))
|
||||
lock->class_cache = NULL;
|
||||
#ifdef CONFIG_LOCK_STAT
|
||||
lock->cpu = raw_smp_processor_id();
|
||||
#endif
|
||||
|
||||
if (DEBUG_LOCKS_WARN_ON(!name)) {
|
||||
lock->name = "NULL";
|
||||
return;
|
||||
}
|
||||
|
||||
lock->name = name;
|
||||
|
||||
if (DEBUG_LOCKS_WARN_ON(!key))
|
||||
return;
|
||||
if (DEBUG_LOCKS_WARN_ON(!name))
|
||||
return;
|
||||
/*
|
||||
* Sanity check, the lock-class key must be persistent:
|
||||
*/
|
||||
@@ -2507,12 +2514,11 @@ void lockdep_init_map(struct lockdep_map *lock, const char *name,
|
||||
DEBUG_LOCKS_WARN_ON(1);
|
||||
return;
|
||||
}
|
||||
lock->name = name;
|
||||
lock->key = key;
|
||||
lock->class_cache = NULL;
|
||||
#ifdef CONFIG_LOCK_STAT
|
||||
lock->cpu = raw_smp_processor_id();
|
||||
#endif
|
||||
|
||||
if (unlikely(!debug_locks))
|
||||
return;
|
||||
|
||||
if (subclass)
|
||||
register_lock_class(lock, subclass, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user