summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2005-01-15 00:09:15 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-15 00:09:15 -0800
commit8953e8023c8c32a476d0923e145203b9b01f6ebd (patch)
treee08e9cf54ba0b667dcc74bbfa823afec0d6c5882 /include/linux
parentad8c410c23d3933ac1b14abb6be86b6d74b3866f (diff)
[PATCH] Generic IRQ support for PA-RISC
Make PA-RISC use the generic interrupt handling code. We need one tiny change to the generic code -- the addition of a data pointer to irq_desc. This shouldn't be a problem in terms of increasing size of irq_desc for other architectures as the struct is cacheline aligned. It's now 32 bytes on 32-bit platforms and 44/48 bytes on 64-bit platforms (assuming spinlock_t is 4 bytes on 32-bit and 4 or 8 bytes on 64-bit). Signed-off-by: Matthew Wilcox <matthew@wil.cx> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/irq.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h
index 20b1d9558a2b..c3ff4d101667 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -59,9 +59,10 @@ typedef struct hw_interrupt_type hw_irq_controller;
* Pad this out to 32 bytes for cache and indexing reasons.
*/
typedef struct irq_desc {
- unsigned int status; /* IRQ status */
hw_irq_controller *handler;
+ void *handler_data;
struct irqaction *action; /* IRQ action list */
+ unsigned int status; /* IRQ status */
unsigned int depth; /* nested irq disables */
unsigned int irq_count; /* For detecting broken interrupts */
unsigned int irqs_unhandled;