]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
irq_work: Hide access to hirq_work_list in PREEMPT_RT_FULL
authorSteven Rostedt <rostedt@goodmis.org>
Thu, 12 Mar 2015 22:08:57 +0000 (18:08 -0400)
committerMichal Sojka <sojka@merica.cz>
Sun, 13 Sep 2015 07:47:32 +0000 (09:47 +0200)
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@goodmis.org>
kernel/irq_work.c

index 7d92077dce54da4dbf007c4730077456f988ade6..5714d49b1f0ccb0c27c79055f41e1b5cff9e2de2 100644 (file)
@@ -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 */