public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC][Patch] fix for irq_affinity_write_proc v2.5
@ 2003-05-06 19:03 Keith Mannthey
  2003-05-06 19:54 ` Alan Cox
  0 siblings, 1 reply; 7+ messages in thread
From: Keith Mannthey @ 2003-05-06 19:03 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org

Hello,
  irq_affinity_write_proc currently directly calls set_ioapic_affinity
which writes to the ioapic.  This undermines the work done by kirqd by
writing a cpu mask directly to the ioapic. I propose the following patch
to tie the /proc affinity writes into the same code path as kirqd. 
Kirqd will enforce the affinity requested by the user.   

Keith Mannthey


diff -urN linux-2.5.68/arch/i386/kernel/irq.c linux-2.5.68-procfix/arch/i386/kernel/irq.c
--- linux-2.5.68/arch/i386/kernel/irq.c	Sat Apr 19 19:48:50 2003
+++ linux-2.5.68-procfix/arch/i386/kernel/irq.c	Thu May  8 13:47:38 2003
@@ -871,8 +871,11 @@
 		return -EINVAL;
 
 	irq_affinity[irq] = new_value;
-	irq_desc[irq].handler->set_affinity(irq, new_value);
-
+	if (irqbalance_disabled)
+		irq_desc[irq].handler->set_affinity(irq, new_value);
+	else
+		do_irq_balance();
+	
 	return full_count;
 }



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

end of thread, other threads:[~2003-05-07 17:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-06 19:03 [RFC][Patch] fix for irq_affinity_write_proc v2.5 Keith Mannthey
2003-05-06 19:54 ` Alan Cox
2003-05-06 21:58   ` Keith Mannthey
2003-05-07  2:27   ` William Lee Irwin III
2003-05-07 12:16     ` Alan Cox
2003-05-07 18:12       ` Keith Mannthey
2003-05-07  3:56   ` Martin J. Bligh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox