Skip to contentSkip to conversation

kill softirq_pending()

PATCH In review Christoph Hellwig 1 participant 1 message Jan 16, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 kill softirq_pending()

no more users left, time to kill the various implementations

include/asm-ia64/hardirq.h +0 -1
@@ -19,7 +19,6 @@
 
 #define __ARCH_IRQ_STAT	1
 
-#define softirq_pending(cpu)		(cpu_data(cpu)->softirq_pending)
 #define local_softirq_pending()		(local_cpu_data->softirq_pending)
 
 #define HARDIRQ_BITS	14

===== include/asm-s390/hardirq.h 1.17 vs edited =====

include/asm-s390/hardirq.h +0 -9
@@ -27,15 +27,6 @@
 
 #define local_softirq_pending() (S390_lowcore.softirq_pending)
 
-/* this is always called with cpu == smp_processor_id() at the moment */
-static inline __u32
-softirq_pending(unsigned int cpu)
-{
-	if (cpu == smp_processor_id())
-		return local_softirq_pending();
-	return lowcore_ptr[cpu]->softirq_pending;
-}
-
 #define __ARCH_IRQ_STAT
 #define __ARCH_HAS_DO_SOFTIRQ
 

===== include/linux/irq_cpustat.h 1.11 vs edited =====

include/linux/irq_cpustat.h +2 -2
@@ -23,8 +23,8 @@
 #endif
 
   /* arch independent irq_stat fields */
-#define softirq_pending(cpu)	__IRQ_STAT((cpu), __softirq_pending)
-#define local_softirq_pending()	softirq_pending(smp_processor_id())
+#define local_softirq_pending() \
+	__IRQ_STAT(smp_processor_id(), __softirq_pending)
 
   /* arch dependent irq_stat fields */
 #define nmi_count(cpu)		__IRQ_STAT((cpu), __nmi_count)	/* i386 */