public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: userspace irq   balancer 
@ 2003-05-21 18:28 Keith Mannthey
  2003-05-21 19:19 ` userspace irq =?unknown-8bit?Q?balance?= =?unknown-8bit?B?csKg?= William Lee Irwin III
  2003-05-21 23:39 ` userspace irq balancer Keith Mannthey
  0 siblings, 2 replies; 6+ messages in thread
From: Keith Mannthey @ 2003-05-21 18:28 UTC (permalink / raw)
  To: Martin J. Bligh
  Cc: davem, habanero, haveblue, wli, arjanv, pbadari,
	linux-kernel@vger.kernel.org, gh, johnstul, jamesclv,
	Andrew Morton

[-- Attachment #1: Type: text/plain, Size: 291 bytes --]

  Here is the patch to turn kirqd into a config option if it is really
needed.  I don't see why the noirqbalance functionality isn't enough for
now.  Is there anything currently keeping a userspace irq balancer from
working as 2.5 stands today?  It dosen't look like it to me.

Keith      


[-- Attachment #2: config-irq-2.5.68 --]
[-- Type: text/x-patch, Size: 1618 bytes --]

diff -urN linux-2.5.68/arch/i386/Kconfig linux-2.5.68-config-irq/arch/i386/Kconfig
--- linux-2.5.68/arch/i386/Kconfig	Sat Apr 19 19:48:52 2003
+++ linux-2.5.68-config-irq/arch/i386/Kconfig	Thu Apr 24 17:04:47 2003
@@ -758,6 +758,14 @@
 
 	  See <file:Documentation/mtrr.txt> for more information.
 
+config IRQBALANCE
+ 	bool "Enable kernel irq balancing"
+	depends on SMP
+	default y
+	help
+ 	  The defalut yes will allow the kernel to do irq load balancing.  
+	  Saying no will keep the kernel from doing irq load balancing. 	
+
 config HAVE_DEC_LOCK
 	bool
 	depends on (SMP || PREEMPT) && X86_CMPXCHG
diff -urN linux-2.5.68/arch/i386/kernel/io_apic.c linux-2.5.68-config-irq/arch/i386/kernel/io_apic.c
--- linux-2.5.68/arch/i386/kernel/io_apic.c	Sat Apr 19 19:49:09 2003
+++ linux-2.5.68-config-irq/arch/i386/kernel/io_apic.c	Thu Apr 24 17:05:30 2003
@@ -263,7 +263,7 @@
 	spin_unlock_irqrestore(&ioapic_lock, flags);
 }
 
-#if defined(CONFIG_SMP)
+#if defined(CONFIG_IRQBALANCE) 
 # include <asm/processor.h>	/* kernel_thread() */
 # include <linux/kernel_stat.h>	/* kstat */
 # include <linux/slab.h>		/* kmalloc() */
@@ -654,8 +654,6 @@
 
 __setup("noirqbalance", irqbalance_disable);
 
-static void set_ioapic_affinity (unsigned int irq, unsigned long mask);
-
 static inline void move_irq(int irq)
 {
 	/* note - we hold the desc->lock */
@@ -667,9 +665,9 @@
 
 __initcall(balanced_irq_init);
 
-#else /* !SMP */
+#else /* !IRQBALANCE */
 static inline void move_irq(int irq) { }
-#endif /* defined(CONFIG_SMP) */
+#endif /* defined(IRQBALANCE) */
 
 
 /*

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

end of thread, other threads:[~2003-05-22  8:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-21 18:28 userspace irq balancer Keith Mannthey
2003-05-21 19:19 ` userspace irq =?unknown-8bit?Q?balance?= =?unknown-8bit?B?csKg?= William Lee Irwin III
2003-05-21 23:39 ` userspace irq balancer Keith Mannthey
2003-05-21 23:42   ` userspace irq balancerB David S. Miller
2003-05-22  0:14   ` userspace irq =?unknown-8bit?Q?balance?= =?unknown-8bit?B?csKg?= William Lee Irwin III
2003-05-22  8:17   ` userspace irq balancer Arjan van de Ven

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