diff options
Diffstat (limited to 'arch/ia64/sn')
-rw-r--r-- | arch/ia64/sn/kernel/irq.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/ia64/sn/kernel/irq.c b/arch/ia64/sn/kernel/irq.c index c265e02f5036..db187f5cdae1 100644 --- a/arch/ia64/sn/kernel/irq.c +++ b/arch/ia64/sn/kernel/irq.c | |||
@@ -202,6 +202,9 @@ void sn_irq_init(void) | |||
202 | int i; | 202 | int i; |
203 | irq_desc_t *base_desc = irq_desc; | 203 | irq_desc_t *base_desc = irq_desc; |
204 | 204 | ||
205 | ia64_first_device_vector = IA64_SN2_FIRST_DEVICE_VECTOR; | ||
206 | ia64_last_device_vector = IA64_SN2_LAST_DEVICE_VECTOR; | ||
207 | |||
205 | for (i = 0; i < NR_IRQS; i++) { | 208 | for (i = 0; i < NR_IRQS; i++) { |
206 | if (base_desc[i].handler == &no_irq_type) { | 209 | if (base_desc[i].handler == &no_irq_type) { |
207 | base_desc[i].handler = &irq_type_sn; | 210 | base_desc[i].handler = &irq_type_sn; |
@@ -285,6 +288,7 @@ void sn_irq_fixup(struct pci_dev *pci_dev, struct sn_irq_info *sn_irq_info) | |||
285 | /* link it into the sn_irq[irq] list */ | 288 | /* link it into the sn_irq[irq] list */ |
286 | spin_lock(&sn_irq_info_lock); | 289 | spin_lock(&sn_irq_info_lock); |
287 | list_add_rcu(&sn_irq_info->list, sn_irq_lh[sn_irq_info->irq_irq]); | 290 | list_add_rcu(&sn_irq_info->list, sn_irq_lh[sn_irq_info->irq_irq]); |
291 | reserve_irq_vector(sn_irq_info->irq_irq); | ||
288 | spin_unlock(&sn_irq_info_lock); | 292 | spin_unlock(&sn_irq_info_lock); |
289 | 293 | ||
290 | register_intr_pda(sn_irq_info); | 294 | register_intr_pda(sn_irq_info); |
@@ -310,8 +314,11 @@ void sn_irq_unfixup(struct pci_dev *pci_dev) | |||
310 | spin_lock(&sn_irq_info_lock); | 314 | spin_lock(&sn_irq_info_lock); |
311 | list_del_rcu(&sn_irq_info->list); | 315 | list_del_rcu(&sn_irq_info->list); |
312 | spin_unlock(&sn_irq_info_lock); | 316 | spin_unlock(&sn_irq_info_lock); |
317 | if (list_empty(sn_irq_lh[sn_irq_info->irq_irq])) | ||
318 | free_irq_vector(sn_irq_info->irq_irq); | ||
313 | call_rcu(&sn_irq_info->rcu, sn_irq_info_free); | 319 | call_rcu(&sn_irq_info->rcu, sn_irq_info_free); |
314 | pci_dev_put(pci_dev); | 320 | pci_dev_put(pci_dev); |
321 | |||
315 | } | 322 | } |
316 | 323 | ||
317 | static inline void | 324 | static inline void |