diff options
author | Ingo Molnar <mingo@elte.hu> | 2011-02-06 11:59:22 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-02-06 11:59:38 (GMT) |
commit | 55835eb62fad1253c9e657a667549945e4be9759 (patch) | |
tree | 21626f8fe39d917a955f1f5110d63e4765a3ec93 /kernel | |
parent | 83a06bf50bdf2074b9404951ff60e142d159d93b (diff) | |
parent | f266a5110d453b7987194460ac7edd31f1a5426c (diff) | |
download | linux-fsl-qoriq-55835eb62fad1253c9e657a667549945e4be9759.tar.xz |
Merge branch 'timers/locking'
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/timer.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/timer.c b/kernel/timer.c index 43ca993..d53ce66 100644 --- a/kernel/timer.c +++ b/kernel/timer.c @@ -969,10 +969,14 @@ EXPORT_SYMBOL(try_to_del_timer_sync); int del_timer_sync(struct timer_list *timer) { #ifdef CONFIG_LOCKDEP + unsigned long flags; + + raw_local_irq_save(flags); local_bh_disable(); lock_map_acquire(&timer->lockdep_map); lock_map_release(&timer->lockdep_map); - local_bh_enable(); + _local_bh_enable(); + raw_local_irq_restore(flags); #endif /* * don't use it in hardirq context, because it |