diff options
author | Richard Kennedy <richard@rsk.demon.co.uk> | 2008-11-23 09:34:43 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-23 10:15:00 -0500 |
commit | e262a7ba31f0cd4dae225e6d2e9037e5ac6108e8 (patch) | |
tree | 338d892cf8d120341fa206ad8ed6350eb5bedd79 /include/linux/irq.h | |
parent | ed313489badef16d700f5a3be50e8fd8f8294bc8 (diff) |
irq.h: remove padding from irq_desc on 64bits
Impact: reduce struct irq_desc size
struct irq_desc: reorder to remove padding on 64bits
shrinks irq_desc to 128 bytes which saves data space & cache lines
On a generic x86_64/SMP build this reduces the reported data size by
64k.
Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r-- | include/linux/irq.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h index d058c57be02d..838a977885e1 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
@@ -142,8 +142,8 @@ struct irq_chip { | |||
142 | * @depth: disable-depth, for nested irq_disable() calls | 142 | * @depth: disable-depth, for nested irq_disable() calls |
143 | * @wake_depth: enable depth, for multiple set_irq_wake() callers | 143 | * @wake_depth: enable depth, for multiple set_irq_wake() callers |
144 | * @irq_count: stats field to detect stalled irqs | 144 | * @irq_count: stats field to detect stalled irqs |
145 | * @irqs_unhandled: stats field for spurious unhandled interrupts | ||
146 | * @last_unhandled: aging timer for unhandled count | 145 | * @last_unhandled: aging timer for unhandled count |
146 | * @irqs_unhandled: stats field for spurious unhandled interrupts | ||
147 | * @lock: locking for SMP | 147 | * @lock: locking for SMP |
148 | * @affinity: IRQ affinity on SMP | 148 | * @affinity: IRQ affinity on SMP |
149 | * @cpu: cpu index useful for balancing | 149 | * @cpu: cpu index useful for balancing |
@@ -165,8 +165,8 @@ struct irq_desc { | |||
165 | unsigned int depth; /* nested irq disables */ | 165 | unsigned int depth; /* nested irq disables */ |
166 | unsigned int wake_depth; /* nested wake enables */ | 166 | unsigned int wake_depth; /* nested wake enables */ |
167 | unsigned int irq_count; /* For detecting broken IRQs */ | 167 | unsigned int irq_count; /* For detecting broken IRQs */ |
168 | unsigned int irqs_unhandled; | ||
169 | unsigned long last_unhandled; /* Aging timer for unhandled count */ | 168 | unsigned long last_unhandled; /* Aging timer for unhandled count */ |
169 | unsigned int irqs_unhandled; | ||
170 | spinlock_t lock; | 170 | spinlock_t lock; |
171 | #ifdef CONFIG_SMP | 171 | #ifdef CONFIG_SMP |
172 | cpumask_t affinity; | 172 | cpumask_t affinity; |