* [PATCH][RT] irq_work: Use proper BUG_ON_NONRT()
@ 2015-06-22 19:43 ` Steven Rostedt
0 siblings, 0 replies; 2+ messages in thread
From: Steven Rostedt @ 2015-06-22 19:43 UTC (permalink / raw)
To: Sebastian Andrzej Siewior; +Cc: LKML, linux-rt-users, Thomas Gleixner
We added BUG_ON_NONRT() to handle those cases that don't apply when
PREEMPT_RT is enabled. No need to open code the check using
IS_ENABLED().
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
diff --git a/kernel/irq_work.c b/kernel/irq_work.c
index 9678fd1382a7..5a0f4525139c 100644
--- a/kernel/irq_work.c
+++ b/kernel/irq_work.c
@@ -144,7 +144,7 @@ static void irq_work_run_list(struct llist_head *list)
struct irq_work *work;
struct llist_node *llnode;
- BUG_ON(!IS_ENABLED(CONFIG_PREEMPT_RT_FULL) && !irqs_disabled());
+ BUG_ON_NONRT(!irqs_disabled());
if (llist_empty(list))
return;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH][RT] irq_work: Use proper BUG_ON_NONRT()
@ 2015-06-22 19:43 ` Steven Rostedt
0 siblings, 0 replies; 2+ messages in thread
From: Steven Rostedt @ 2015-06-22 19:43 UTC (permalink / raw)
To: Sebastian Andrzej Siewior; +Cc: LKML, linux-rt-users, Thomas Gleixner
We added BUG_ON_NONRT() to handle those cases that don't apply when
PREEMPT_RT is enabled. No need to open code the check using
IS_ENABLED().
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
diff --git a/kernel/irq_work.c b/kernel/irq_work.c
index 9678fd1382a7..5a0f4525139c 100644
--- a/kernel/irq_work.c
+++ b/kernel/irq_work.c
@@ -144,7 +144,7 @@ static void irq_work_run_list(struct llist_head *list)
struct irq_work *work;
struct llist_node *llnode;
- BUG_ON(!IS_ENABLED(CONFIG_PREEMPT_RT_FULL) && !irqs_disabled());
+ BUG_ON_NONRT(!irqs_disabled());
if (llist_empty(list))
return;
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-22 19:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-22 19:43 [PATCH][RT] irq_work: Use proper BUG_ON_NONRT() Steven Rostedt
2015-06-22 19:43 ` Steven Rostedt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.