linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] genirq: Fix wait_for_threads initialization in early_irq_init
@ 2022-05-03 10:06 Thomas Pfaff
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Pfaff @ 2022-05-03 10:06 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: linux-kernel, linux-rt-users, Marc Zyngier

From: Thomas Pfaff <tpfaff@pcs.com>

Bugfix for copy and paste error in
"genirq: Synchronize interrupt thread startup"

Signed-off-by: Thomas Pfaff <tpfaff@pcs.com>
---
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
index 02f3b5bf5145..0099b87dd853 100644
--- a/kernel/irq/irqdesc.c
+++ b/kernel/irq/irqdesc.c
@@ -576,7 +576,7 @@ int __init early_irq_init(void)
 		raw_spin_lock_init(&desc[i].lock);
 		lockdep_set_class(&desc[i].lock, &irq_desc_lock_class);
 		mutex_init(&desc[i].request_mutex);
-		init_waitqueue_head(&desc->wait_for_threads);
+		init_waitqueue_head(&desc[i].wait_for_threads);
 		desc_set_defaults(i, &desc[i], node, NULL, NULL);
 	}
 	return arch_early_irq_init();



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

* [PATCH] genirq: Fix wait_for_threads initialization in early_irq_init
@ 2022-05-03  9:04 Thomas Pfaff
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Pfaff @ 2022-05-03  9:04 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: linux-kernel, linux-rt-users, Marc Zyngier

From: Thomas Pfaff <tpfaff@pcs.com>

Bugfix for copy and paste error in genirq: Synchronize interrupt thread startup.

Signed-off-by: Thomas Pfaff <tpfaff@pcs.com>
---
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
index 02f3b5bf5145..0099b87dd853 100644
--- a/kernel/irq/irqdesc.c
+++ b/kernel/irq/irqdesc.c
@@ -576,7 +576,7 @@ int __init early_irq_init(void)
 		raw_spin_lock_init(&desc[i].lock);
 		lockdep_set_class(&desc[i].lock, &irq_desc_lock_class);
 		mutex_init(&desc[i].request_mutex);
-		init_waitqueue_head(&desc->wait_for_threads);
+		init_waitqueue_head(&desc[i].wait_for_threads);
 		desc_set_defaults(i, &desc[i], node, NULL, NULL);
 	}
 	return arch_early_irq_init();



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

end of thread, other threads:[~2022-05-03 10:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-03 10:06 [PATCH] genirq: Fix wait_for_threads initialization in early_irq_init Thomas Pfaff
  -- strict thread matches above, loose matches on Subject: below --
2022-05-03  9:04 Thomas Pfaff

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