hrtimers: simplify lockdep handling
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 4 Apr 2008 18:54:10 +0000 (20:54 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 17 Apr 2008 10:22:31 +0000 (12:22 +0200)
commit8e60e05fdc7344415fa69a3883b11f65db967b47
treea0b13c31670221906e8d48cb7bf47dc8f8043918
parent0d180406f2914aea3a78ddb880e2fe9ac78a9372
hrtimers: simplify lockdep handling

In order to avoid the false positive from lockdep, each per-cpu base->lock has
the separate lock class and migrate_hrtimers() uses double_spin_lock().

This is overcomplicated: except for migrate_hrtimers() we never take 2 locks
at once, and migrate_hrtimers() can use spin_lock_nested().

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Arjan van de Ven <arjan@linux.intel.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/hrtimer.h
kernel/hrtimer.c