diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-08-19 23:50:17 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 10:52:51 -0400 |
commit | cb5bc83225a86ca53bbb889ed8439e4fd6cf44ac (patch) | |
tree | d2c43413adbc86562ab63498e3ce14e36ba253ed /kernel/irq/manage.c | |
parent | 1d5f6b36c4736af1dac396d6267eb53dcc8c0021 (diff) |
x86_64: rename irq_desc/irq_desc_alloc
change names:
irq_desc() ==> irq_desc_alloc
__irq_desc() ==> irq_desc
Also split a few of the uses in lowlevel x86 code.
v2: need to check if desc is null in smp_irq_move_cleanup
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/irq/manage.c')
-rw-r--r-- | kernel/irq/manage.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index c0b4d4df6de2..6df49218632a 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -31,7 +31,7 @@ cpumask_t irq_default_affinity = CPU_MASK_ALL; | |||
31 | */ | 31 | */ |
32 | void synchronize_irq(unsigned int irq) | 32 | void synchronize_irq(unsigned int irq) |
33 | { | 33 | { |
34 | struct irq_desc *desc = __irq_to_desc(irq); | 34 | struct irq_desc *desc = irq_to_desc(irq); |
35 | unsigned int status; | 35 | unsigned int status; |
36 | 36 | ||
37 | if (!desc) | 37 | if (!desc) |
@@ -145,7 +145,7 @@ void disable_irq_nosync(unsigned int irq) | |||
145 | struct irq_desc *desc; | 145 | struct irq_desc *desc; |
146 | unsigned long flags; | 146 | unsigned long flags; |
147 | 147 | ||
148 | desc = __irq_to_desc(irq); | 148 | desc = irq_to_desc(irq); |
149 | if (!desc) | 149 | if (!desc) |
150 | return; | 150 | return; |
151 | 151 | ||
@@ -174,7 +174,7 @@ void disable_irq(unsigned int irq) | |||
174 | { | 174 | { |
175 | struct irq_desc *desc; | 175 | struct irq_desc *desc; |
176 | 176 | ||
177 | desc = __irq_to_desc(irq); | 177 | desc = irq_to_desc(irq); |
178 | if (!desc) | 178 | if (!desc) |
179 | return; | 179 | return; |
180 | 180 | ||
@@ -218,7 +218,7 @@ void enable_irq(unsigned int irq) | |||
218 | struct irq_desc *desc; | 218 | struct irq_desc *desc; |
219 | unsigned long flags; | 219 | unsigned long flags; |
220 | 220 | ||
221 | desc = __irq_to_desc(irq); | 221 | desc = irq_to_desc(irq); |
222 | if (!desc) | 222 | if (!desc) |
223 | return; | 223 | return; |
224 | 224 | ||
@@ -296,7 +296,7 @@ int can_request_irq(unsigned int irq, unsigned long irqflags) | |||
296 | struct irq_desc *desc; | 296 | struct irq_desc *desc; |
297 | struct irqaction *action; | 297 | struct irqaction *action; |
298 | 298 | ||
299 | desc = __irq_to_desc(irq); | 299 | desc = irq_to_desc(irq); |
300 | if (!desc) | 300 | if (!desc) |
301 | return 0; | 301 | return 0; |
302 | 302 | ||
@@ -366,7 +366,7 @@ int setup_irq(unsigned int irq, struct irqaction *new) | |||
366 | int shared = 0; | 366 | int shared = 0; |
367 | int ret; | 367 | int ret; |
368 | 368 | ||
369 | desc = __irq_to_desc(irq); | 369 | desc = irq_to_desc(irq); |
370 | if (!desc) | 370 | if (!desc) |
371 | return -EINVAL; | 371 | return -EINVAL; |
372 | 372 | ||
@@ -527,7 +527,7 @@ void free_irq(unsigned int irq, void *dev_id) | |||
527 | 527 | ||
528 | WARN_ON(in_interrupt()); | 528 | WARN_ON(in_interrupt()); |
529 | 529 | ||
530 | desc = __irq_to_desc(irq); | 530 | desc = irq_to_desc(irq); |
531 | if (!desc) | 531 | if (!desc) |
532 | return; | 532 | return; |
533 | 533 | ||
@@ -644,7 +644,7 @@ int request_irq(unsigned int irq, irq_handler_t handler, | |||
644 | if ((irqflags & IRQF_SHARED) && !dev_id) | 644 | if ((irqflags & IRQF_SHARED) && !dev_id) |
645 | return -EINVAL; | 645 | return -EINVAL; |
646 | 646 | ||
647 | desc = __irq_to_desc(irq); | 647 | desc = irq_to_desc(irq); |
648 | if (!desc) | 648 | if (!desc) |
649 | return -EINVAL; | 649 | return -EINVAL; |
650 | 650 | ||