LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] genirq: update irq_set_irqchip_state documentation
@ 2021-09-17 10:30 Sebastian Andrzej Siewior
  2021-09-17 12:19 ` [tip: irq/core] genirq: Update " tip-bot2 for Josh Cartwright
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Andrzej Siewior @ 2021-09-17 10:30 UTC (permalink / raw)
  To: linux-kernel; +Cc: Josh Cartwright, Sebastian Andrzej Siewior, Thomas Gleixner

From: Josh Cartwright <joshc@ni.com>

On -rt kernels, the use of migrate_disable()/migrate_enable() is
sufficient to guarantee a task isn't moved to another CPU.  Update the
irq_set_irqchip_state() documentation to reflect this.

Signed-off-by: Josh Cartwright <joshc@ni.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 kernel/irq/manage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 66d51963e8375..7405e384e5ed0 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -2827,7 +2827,7 @@ EXPORT_SYMBOL_GPL(irq_get_irqchip_state);
  *	This call sets the internal irqchip state of an interrupt,
  *	depending on the value of @which.
  *
- *	This function should be called with preemption disabled if the
+ *	This function should be called with migration disabled if the
  *	interrupt controller has per-cpu registers.
  */
 int irq_set_irqchip_state(unsigned int irq, enum irqchip_irq_state which,
-- 
2.33.0


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

* [tip: irq/core] genirq: Update irq_set_irqchip_state documentation
  2021-09-17 10:30 [PATCH] genirq: update irq_set_irqchip_state documentation Sebastian Andrzej Siewior
@ 2021-09-17 12:19 ` tip-bot2 for Josh Cartwright
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Josh Cartwright @ 2021-09-17 12:19 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Josh Cartwright, Sebastian Andrzej Siewior, Thomas Gleixner, x86,
	linux-kernel, maz

The following commit has been merged into the irq/core branch of tip:

Commit-ID:     e1a6af4b000c39148ab407362fcce3ab63b186f2
Gitweb:        https://git.kernel.org/tip/e1a6af4b000c39148ab407362fcce3ab63b186f2
Author:        Josh Cartwright <joshc@ni.com>
AuthorDate:    Fri, 17 Sep 2021 12:30:55 +02:00
Committer:     Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Fri, 17 Sep 2021 14:15:21 +02:00

genirq: Update irq_set_irqchip_state documentation

On RT kernels, the use of migrate_disable()/migrate_enable() is sufficient
to guarantee a task isn't moved to another CPU.  Update the
irq_set_irqchip_state() documentation to reflect this.

Signed-off-by: Josh Cartwright <joshc@ni.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210917103055.92150-1-bigeasy@linutronix.de

---
 kernel/irq/manage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 27667e8..b392483 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -2827,7 +2827,7 @@ EXPORT_SYMBOL_GPL(irq_get_irqchip_state);
  *	This call sets the internal irqchip state of an interrupt,
  *	depending on the value of @which.
  *
- *	This function should be called with preemption disabled if the
+ *	This function should be called with migration disabled if the
  *	interrupt controller has per-cpu registers.
  */
 int irq_set_irqchip_state(unsigned int irq, enum irqchip_irq_state which,

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

end of thread, other threads:[~2021-09-17 12:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-17 10:30 [PATCH] genirq: update irq_set_irqchip_state documentation Sebastian Andrzej Siewior
2021-09-17 12:19 ` [tip: irq/core] genirq: Update " tip-bot2 for Josh Cartwright

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