Skip to contentSkip to conversation

Remove softirq_pending

PATCH Benoit Boissinot 1 participant 1 message Jan 23, 2005 Kernel janitors

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines · Benoit Boissinot

Hi,

Below is a patch that remove a call to softirq_pending that was forgotten.

I had no comment on this patch. Since softirq_pending was removed in 2.6.11-rc1-mm2, without it the kernel doesn't compile:

net/core/pktgen.c:2809: warning: implicit declaration of function ‘softirq_pending’

net/built-in.o(.text+0x173b0): In function `pktgen_thread_worker':
net/core/pktgen.c:2809: undefined reference to `softirq_pending'
make: *** [.tmp_vmlinux1] Error 1

Quoted 6 lines

net/core/pktgen.c static void pktgen_thread_worker(struct · line 2812

Quoted 8 lines
net/core/pktgen.c +1 -1
@@ -2806,7 +2806,7 @@ static void pktgen_thread_worker(struct 
 			tx_since_softirq += pkt_dev->last_ok;
 
 			if (tx_since_softirq > max_before_softirq) {
-				if(softirq_pending(smp_processor_id()))  
+				if(local_softirq_pending())  
 					do_softirq();
 				tx_since_softirq = 0;
 			}

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors