patch-2.1.97 linux/include/asm-sparc64/softirq.h

Next file: linux/include/asm-sparc64/stat.h
Previous file: linux/include/asm-sparc64/smp.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.96/linux/include/asm-sparc64/softirq.h linux/include/asm-sparc64/softirq.h
@@ -20,8 +20,8 @@
 
 extern int __sparc64_bh_counter;
 
-#define softirq_trylock()	(__sparc64_bh_counter ? 0 : (__sparc64_bh_counter=1))
-#define softirq_endlock()	(__sparc64_bh_counter = 0)
+#define softirq_trylock(cpu)	(__sparc64_bh_counter ? 0 : (__sparc64_bh_counter=1))
+#define softirq_endlock(cpu)	(__sparc64_bh_counter = 0)
 #define clear_active_bhs(x)	(bh_active &= ~(x))
 
 #define init_bh(nr, routine)	\
@@ -114,7 +114,7 @@
 	spin_unlock_irqrestore(&global_bh_lock, flags);	\
 } while(0)
 
-#define softirq_trylock()					\
+#define softirq_trylock(cpu)					\
 ({								\
 	int ret = 1;						\
 	if(atomic_add_return(1, &__sparc64_bh_counter) != 1) {	\
@@ -123,7 +123,7 @@
 	}							\
 	ret;							\
 })
-#define softirq_endlock()	atomic_dec(&__sparc64_bh_counter)
+#define softirq_endlock(cpu)	atomic_dec(&__sparc64_bh_counter)
 #define clear_active_bhs(mask)				\
 do {	unsigned long flags;				\
 	spin_lock_irqsave(&global_bh_lock, flags);	\

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov