diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-04-19 05:53:25 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2012-04-19 07:56:55 -0400 |
commit | c0ecaa06d6d40cb02cd264ddb308e82f0a49ec91 (patch) | |
tree | a4d9c3c160e7c61246bd29c0471351aca4c9a794 /include/linux/interrupt.h | |
parent | 932e9f352b5d685725076f21b237f7c7d804b29c (diff) |
genirq: Streamline irq_action
There is no need to have flags as unsigned long. Make it unsigned int
and put it together with irq so it does not waste space on 64 bit.
Make irq unsigned int while at it.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/interrupt.h')
-rw-r--r-- | include/linux/interrupt.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index 2aea5d22db07..c91171599cb6 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h | |||
@@ -93,27 +93,27 @@ typedef irqreturn_t (*irq_handler_t)(int, void *); | |||
93 | /** | 93 | /** |
94 | * struct irqaction - per interrupt action descriptor | 94 | * struct irqaction - per interrupt action descriptor |
95 | * @handler: interrupt handler function | 95 | * @handler: interrupt handler function |
96 | * @flags: flags (see IRQF_* above) | ||
97 | * @name: name of the device | 96 | * @name: name of the device |
98 | * @dev_id: cookie to identify the device | 97 | * @dev_id: cookie to identify the device |
99 | * @percpu_dev_id: cookie to identify the device | 98 | * @percpu_dev_id: cookie to identify the device |
100 | * @next: pointer to the next irqaction for shared interrupts | 99 | * @next: pointer to the next irqaction for shared interrupts |
101 | * @irq: interrupt number | 100 | * @irq: interrupt number |
102 | * @dir: pointer to the proc/irq/NN/name entry | 101 | * @flags: flags (see IRQF_* above) |
103 | * @thread_fn: interrupt handler function for threaded interrupts | 102 | * @thread_fn: interrupt handler function for threaded interrupts |
104 | * @thread: thread pointer for threaded interrupts | 103 | * @thread: thread pointer for threaded interrupts |
105 | * @thread_flags: flags related to @thread | 104 | * @thread_flags: flags related to @thread |
106 | * @thread_mask: bitmask for keeping track of @thread activity | 105 | * @thread_mask: bitmask for keeping track of @thread activity |
106 | * @dir: pointer to the proc/irq/NN/name entry | ||
107 | */ | 107 | */ |
108 | struct irqaction { | 108 | struct irqaction { |
109 | irq_handler_t handler; | 109 | irq_handler_t handler; |
110 | unsigned long flags; | ||
111 | void *dev_id; | 110 | void *dev_id; |
112 | void __percpu *percpu_dev_id; | 111 | void __percpu *percpu_dev_id; |
113 | struct irqaction *next; | 112 | struct irqaction *next; |
114 | int irq; | ||
115 | irq_handler_t thread_fn; | 113 | irq_handler_t thread_fn; |
116 | struct task_struct *thread; | 114 | struct task_struct *thread; |
115 | unsigned int irq; | ||
116 | unsigned int flags; | ||
117 | unsigned long thread_flags; | 117 | unsigned long thread_flags; |
118 | unsigned long thread_mask; | 118 | unsigned long thread_mask; |
119 | const char *name; | 119 | const char *name; |