diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-07-05 13:13:03 -0400 | 
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-07-05 13:13:03 -0400 | 
| commit | 5e66dd6d66ffe758b39b6dcadf2330753ee1159b (patch) | |
| tree | a72cdcff4448e4af9425cc213ddf56ab23e697fe /kernel/timer.c | |
| parent | 026477c1141b67e98e3bd8bdedb7d4b88a3ecd09 (diff) | |
| parent | ca78f6baca863afe2e6a244a0fe94b3a70211d46 (diff) | |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Diffstat (limited to 'kernel/timer.c')
| -rw-r--r-- | kernel/timer.c | 13 | 
1 files changed, 11 insertions, 2 deletions
| diff --git a/kernel/timer.c b/kernel/timer.c index 5a8960253063..396a3c024c2c 100644 --- a/kernel/timer.c +++ b/kernel/timer.c @@ -1208,7 +1208,7 @@ unsigned long wall_jiffies = INITIAL_JIFFIES;   * playing with xtime and avenrun.   */  #ifndef ARCH_HAVE_XTIME_LOCK -seqlock_t xtime_lock __cacheline_aligned_in_smp = SEQLOCK_UNLOCKED; +__cacheline_aligned_in_smp DEFINE_SEQLOCK(xtime_lock);  EXPORT_SYMBOL(xtime_lock);  #endif @@ -1368,7 +1368,7 @@ asmlinkage long sys_getegid(void)  static void process_timeout(unsigned long __data)  { -	wake_up_process((task_t *)__data); +	wake_up_process((struct task_struct *)__data);  }  /** @@ -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; @@ -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); | 
