Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMel Gorman <mgorman@suse.de>2017-11-15 14:39:17 +0000
committerMel Gorman <mgorman@suse.de>2017-11-15 14:39:21 +0000
commit62f354b2fe3672bad80ef1a0c654c64b803ada50 (patch)
tree6b12264fcfcb293da83f14a153a29d8fc761ee4f
parenta823fa92950983f3d68dec7a571eb55d5d137049 (diff)
irq_work: Use lockdep to assert IRQs are disabled/enabled
(bnc#1068202 Avoid irqs_disabled debugging checks in fast paths). suse-commit: 925a2ffc981f88b085b63ecaa5d4c3874e5b2e67
-rw-r--r--kernel/irq_work.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq_work.c b/kernel/irq_work.c
index bcf107ce0854..899579657a0a 100644
--- a/kernel/irq_work.c
+++ b/kernel/irq_work.c
@@ -188,7 +188,7 @@ void irq_work_tick(void)
*/
void irq_work_sync(struct irq_work *work)
{
- WARN_ON_ONCE(irqs_disabled());
+ lockdep_assert_irqs_enabled();
while (work->flags & IRQ_WORK_BUSY)
cpu_relax();