diff options
Diffstat (limited to 'kernel/timer.c')
-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 612de0306e79..483e54ba5c93 100644 --- a/kernel/timer.c +++ b/kernel/timer.c | |||
@@ -974,7 +974,11 @@ int del_timer_sync(struct timer_list *timer) | |||
974 | lock_map_release(&timer->lockdep_map); | 974 | lock_map_release(&timer->lockdep_map); |
975 | local_bh_enable(); | 975 | local_bh_enable(); |
976 | #endif | 976 | #endif |
977 | 977 | /* | |
978 | * don't use it in hardirq context, because it | ||
979 | * could lead to deadlock. | ||
980 | */ | ||
981 | WARN_ON(in_irq()); | ||
978 | for (;;) { | 982 | for (;;) { |
979 | int ret = try_to_del_timer_sync(timer); | 983 | int ret = try_to_del_timer_sync(timer); |
980 | if (ret >= 0) | 984 | if (ret >= 0) |