patch-2.3.30 linux/include/linux/irq.h
Next file: linux/include/linux/mm.h
Previous file: linux/include/linux/ipc.h
Back to the patch index
Back to the overall index
-  Lines: 37
-  Date:
Mon Dec  6 17:24:07 1999
-  Orig file: 
v2.3.29/linux/include/linux/irq.h
-  Orig date: 
Wed Aug 18 16:45:11 1999
diff -u --recursive --new-file v2.3.29/linux/include/linux/irq.h linux/include/linux/irq.h
@@ -42,7 +42,7 @@
 					   independent code */
 	struct irqaction *action;		/* IRQ action list */
 	unsigned int depth;			/* Disable depth for nested irq disables */
-} irq_desc_t;
+} ____cacheline_aligned irq_desc_t;
 
 #include <asm/hw_irq.h> /* the arch dependent stuff */
 
@@ -51,27 +51,6 @@
 extern int handle_IRQ_event(unsigned int, struct pt_regs *, struct irqaction *);
 extern spinlock_t irq_controller_lock;
 extern int setup_irq(unsigned int , struct irqaction * );
-
-#ifdef __SMP__
-
-#include <asm/atomic.h>
-
-static inline void irq_enter(int cpu, unsigned int irq)
-{
-	hardirq_enter(cpu);
-	while (test_bit(0,&global_irq_lock)) {
-		/* nothing */;
-	}
-}
-
-static inline void irq_exit(int cpu, unsigned int irq)
-{
-	hardirq_exit(cpu);
-}
-#else
-#define irq_enter(cpu, irq)	(++local_irq_count[cpu])
-#define irq_exit(cpu, irq)	(--local_irq_count[cpu])
-#endif
 
 extern hw_irq_controller no_irq_type;  /* needed in every arch ? */
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)