]> git.baikalelectronics.ru Git - kernel.git/commit
timer: Del_timer_sync() can be used in softirq context
authorYong Zhang <yong.zhang@windriver.com>
Wed, 20 Oct 2010 22:57:32 +0000 (15:57 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 22 Oct 2010 12:46:25 +0000 (14:46 +0200)
commit1eb273de9a0aac8554b1d036c933db90ac396a67
tree09bb7b87d78ecfa542a419640f36505fac11fb79
parent4266776e9d9f3f1fde605e5b93000d6155a7ab87
timer: Del_timer_sync() can be used in softirq context

Actually we have used del_timer_sync() in softirq context for a long time,
e.g. in __dst_free()::cancel_delayed_work().

So change the comments of it to warn on hardirq context only, and make
lockdep know about this change.

Signed-off-by: Yong Zhang <yong.zhang0@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/timer.c