patch-2.4.0-test6 linux/include/asm-sparc/softirq.h

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

diff -u --recursive --new-file v2.4.0-test5/linux/include/asm-sparc/softirq.h linux/include/asm-sparc/softirq.h
@@ -7,33 +7,15 @@
 #ifndef __SPARC_SOFTIRQ_H
 #define __SPARC_SOFTIRQ_H
 
-#include <linux/config.h>
 #include <linux/threads.h>	/* For NR_CPUS */
 
 #include <asm/atomic.h>
 #include <asm/smp.h>
 #include <asm/hardirq.h>
 
-
-#ifdef CONFIG_SMP
-extern unsigned int __local_bh_count[NR_CPUS];
-#define local_bh_count(cpu)	__local_bh_count[cpu]
-
 #define local_bh_disable()	(local_bh_count(smp_processor_id())++)
 #define local_bh_enable()	(local_bh_count(smp_processor_id())--)
 
 #define in_softirq() (local_bh_count(smp_processor_id()) != 0)
-
-#else
-
-extern unsigned int __local_bh_count;
-#define local_bh_count(cpu)	__local_bh_count
-
-#define local_bh_disable()	(__local_bh_count++)
-#define local_bh_enable()	(__local_bh_count--)
-
-#define in_softirq() (__local_bh_count != 0)
-
-#endif	/* SMP */
 
 #endif	/* __SPARC_SOFTIRQ_H */

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