diff options
Diffstat (limited to 'kernel/irq/handle.c')
| -rw-r--r-- | kernel/irq/handle.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index 0e823c0d1c9c..266f7986aa08 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c | |||
| @@ -127,7 +127,7 @@ static void init_one_irq_desc(int irq, struct irq_desc *desc, int node) | |||
| 127 | */ | 127 | */ |
| 128 | DEFINE_RAW_SPINLOCK(sparse_irq_lock); | 128 | DEFINE_RAW_SPINLOCK(sparse_irq_lock); |
| 129 | 129 | ||
| 130 | struct irq_desc **irq_desc_ptrs __read_mostly; | 130 | static struct irq_desc **irq_desc_ptrs __read_mostly; |
| 131 | 131 | ||
| 132 | static struct irq_desc irq_desc_legacy[NR_IRQS_LEGACY] __cacheline_aligned_in_smp = { | 132 | static struct irq_desc irq_desc_legacy[NR_IRQS_LEGACY] __cacheline_aligned_in_smp = { |
| 133 | [0 ... NR_IRQS_LEGACY-1] = { | 133 | [0 ... NR_IRQS_LEGACY-1] = { |
| @@ -192,6 +192,11 @@ struct irq_desc *irq_to_desc(unsigned int irq) | |||
| 192 | return NULL; | 192 | return NULL; |
| 193 | } | 193 | } |
| 194 | 194 | ||
| 195 | void replace_irq_desc(unsigned int irq, struct irq_desc *desc) | ||
| 196 | { | ||
| 197 | irq_desc_ptrs[irq] = desc; | ||
| 198 | } | ||
| 199 | |||
| 195 | struct irq_desc * __ref irq_to_desc_alloc_node(unsigned int irq, int node) | 200 | struct irq_desc * __ref irq_to_desc_alloc_node(unsigned int irq, int node) |
| 196 | { | 201 | { |
| 197 | struct irq_desc *desc; | 202 | struct irq_desc *desc; |
