diff options
-rw-r--r-- | include/linux/irq.h | 14 | ||||
-rw-r--r-- | kernel/irq/numa_migrate.c | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h index 974890b3c52f..99d147efe399 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
@@ -482,6 +482,16 @@ static inline void init_copy_desc_masks(struct irq_desc *old_desc, | |||
482 | #endif | 482 | #endif |
483 | } | 483 | } |
484 | 484 | ||
485 | static inline void free_desc_masks(struct irq_desc *old_desc, | ||
486 | struct irq_desc *new_desc) | ||
487 | { | ||
488 | free_cpumask_var(old_desc->affinity); | ||
489 | |||
490 | #ifdef CONFIG_GENERIC_PENDING_IRQ | ||
491 | free_cpumask_var(old_desc->pending_mask); | ||
492 | #endif | ||
493 | } | ||
494 | |||
485 | #else /* !CONFIG_SMP */ | 495 | #else /* !CONFIG_SMP */ |
486 | 496 | ||
487 | static inline bool init_alloc_desc_masks(struct irq_desc *desc, int cpu, | 497 | static inline bool init_alloc_desc_masks(struct irq_desc *desc, int cpu, |
@@ -495,6 +505,10 @@ static inline void init_copy_desc_masks(struct irq_desc *old_desc, | |||
495 | { | 505 | { |
496 | } | 506 | } |
497 | 507 | ||
508 | static inline void free_desc_masks(struct irq_desc *old_desc, | ||
509 | struct irq_desc *new_desc) | ||
510 | { | ||
511 | } | ||
498 | #endif /* CONFIG_SMP */ | 512 | #endif /* CONFIG_SMP */ |
499 | 513 | ||
500 | #endif /* _LINUX_IRQ_H */ | 514 | #endif /* _LINUX_IRQ_H */ |
diff --git a/kernel/irq/numa_migrate.c b/kernel/irq/numa_migrate.c index 243d6121e50e..44bbdcbaf8d2 100644 --- a/kernel/irq/numa_migrate.c +++ b/kernel/irq/numa_migrate.c | |||
@@ -54,6 +54,7 @@ static bool init_copy_one_irq_desc(int irq, struct irq_desc *old_desc, | |||
54 | static void free_one_irq_desc(struct irq_desc *old_desc, struct irq_desc *desc) | 54 | static void free_one_irq_desc(struct irq_desc *old_desc, struct irq_desc *desc) |
55 | { | 55 | { |
56 | free_kstat_irqs(old_desc, desc); | 56 | free_kstat_irqs(old_desc, desc); |
57 | free_desc_masks(old_desc, desc); | ||
57 | arch_free_chip_data(old_desc, desc); | 58 | arch_free_chip_data(old_desc, desc); |
58 | } | 59 | } |
59 | 60 | ||