Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31821
b: refs/heads/master
c: d730e88
h: refs/heads/master
i:
  31819: 7cec5ad
v: v3
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Jul 3, 2006
1 parent c8178ad commit b931a15
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 06825ba3553151eea24206bc53d4fc3de49e0ab1
refs/heads/master: d730e882a15c38de02b63a063be636b2ff9e9ed1
9 changes: 9 additions & 0 deletions trunk/kernel/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1559,6 +1559,13 @@ asmlinkage long sys_sysinfo(struct sysinfo __user *info)
return 0;
}

/*
* lockdep: we want to track each per-CPU base as a separate lock-class,
* but timer-bases are kmalloc()-ed, so we need to attach separate
* keys to them:
*/
static struct lock_class_key base_lock_keys[NR_CPUS];

static int __devinit init_timers_cpu(int cpu)
{
int j;
Expand Down Expand Up @@ -1594,6 +1601,8 @@ static int __devinit init_timers_cpu(int cpu)
}

spin_lock_init(&base->lock);
lockdep_set_class(&base->lock, base_lock_keys + cpu);

for (j = 0; j < TVN_SIZE; j++) {
INIT_LIST_HEAD(base->tv5.vec + j);
INIT_LIST_HEAD(base->tv4.vec + j);
Expand Down

0 comments on commit b931a15

Please sign in to comment.