Re: Performance is weird (fwd)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

Werner, is this that funny driver which uses chained BHs?


> Can someone explain, and maybe do something, please? Or am I supposed to
> compile kernel all the time on my production ATM routers.

Well, you can try the following patch:

diff -ur ../vger3-010308/linux/arch/i386/kernel/process.c linux/arch/i386/kernel/process.c
--- ../vger3-010308/linux/arch/i386/kernel/process.c	Tue Feb 20 22:05:42 2001
+++ linux/arch/i386/kernel/process.c	Thu Mar 15 22:47:14 2001
@@ -81,7 +81,8 @@
 {
 	if (current_cpu_data.hlt_works_ok && !hlt_counter) {
 		__cli();
-		if (!current->need_resched)
+		if (!current->need_resched &&
+		    !(softirq_active(smp_processor_id())&softirq_mask(smp_processor_id())))
 			safe_halt();
 		else
 			__sti();


Alexey
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux