|
@@ -2874,10 +2874,7 @@ 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)
|
|
|
{
|
|
|
- int i;
|
|
|
-
|
|
|
- for (i = 0; i < NR_LOCKDEP_CACHING_CLASSES; i++)
|
|
|
- lock->class_cache[i] = NULL;
|
|
|
+ memset(lock, 0, sizeof(*lock));
|
|
|
|
|
|
#ifdef CONFIG_LOCK_STAT
|
|
|
lock->cpu = raw_smp_processor_id();
|