[PATCH RT] irq_work: Hide access to hirq_work_list in PREEMPT_RT_FULL

From: Steven Rostedt
Date: Thu Mar 12 2015 - 18:09:08 EST


The hirq_work_list is only defined when PREEMPT_RT_FULL is configured.
Most access to it is within an #ifdef CONFIG_PREEMPT_RT_FULL, except
for one. Encapsulate that location too.

Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
---
diff --git a/kernel/irq_work.c b/kernel/irq_work.c
index 0c6491228b17..4b53470bf97b 100644
--- a/kernel/irq_work.c
+++ b/kernel/irq_work.c
@@ -147,7 +147,9 @@ bool irq_work_needs_cpu(void)

if (llist_empty(raised))
if (llist_empty(lazy))
+#ifdef CONFIG_PREEMPT_RT_FULL
if (llist_empty(this_cpu_ptr(&hirq_work_list)))
+#endif
return false;

/* All work should have been flushed before going offline */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/