]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/irq_work.c
irq_work: Warn if there's still work on cpu_down
[karo-tx-linux.git] / kernel / irq_work.c
index 4ed17490f6299cf67ea40e41ee03b7351dad4163..480f74715ba97b0d4885baf4892e0abcbe803eef 100644 (file)
@@ -109,6 +109,9 @@ bool irq_work_needs_cpu(void)
        if (llist_empty(this_list))
                return false;
 
+       /* All work should have been flushed before going offline */
+       WARN_ON_ONCE(cpu_is_offline(smp_processor_id()));
+
        return true;
 }