patch-2.3.15 linux/include/asm-i386/hardirq.h

Next file: linux/include/asm-i386/io.h
Previous file: linux/include/asm-i386/dma.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.14/linux/include/asm-i386/hardirq.h linux/include/asm-i386/hardirq.h
@@ -53,7 +53,7 @@
 
 static inline int hardirq_trylock(int cpu)
 {
-	return !atomic_read(&global_irq_count) && !test_bit(0,&global_irq_lock);
+	return !local_irq_count[cpu] && !test_bit(0,&global_irq_lock);
 }
 
 #define hardirq_endlock(cpu)	do { } while (0)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)