linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RT] irq_work: Hide access to hirq_work_list in PREEMPT_RT_FULL
@ 2015-03-12 22:08 Steven Rostedt
  2015-03-16 17:48 ` Sebastian Andrzej Siewior
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Rostedt @ 2015-03-12 22:08 UTC (permalink / raw)
  To: LKML, linux-rt-users; +Cc: Thomas Gleixner, Sebastian Andrzej Siewior

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>
---
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 */

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH RT] irq_work: Hide access to hirq_work_list in PREEMPT_RT_FULL
  2015-03-12 22:08 [PATCH RT] irq_work: Hide access to hirq_work_list in PREEMPT_RT_FULL Steven Rostedt
@ 2015-03-16 17:48 ` Sebastian Andrzej Siewior
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Andrzej Siewior @ 2015-03-16 17:48 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: LKML, linux-rt-users, Thomas Gleixner

* Steven Rostedt | 2015-03-12 18:08:57 [-0400]:

>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>

Applied

Sebastian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-16 17:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-12 22:08 [PATCH RT] irq_work: Hide access to hirq_work_list in PREEMPT_RT_FULL Steven Rostedt
2015-03-16 17:48 ` Sebastian Andrzej Siewior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).