Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116543
b: refs/heads/master
c: ee32c97
h: refs/heads/master
i:
  116541: 8240ed2
  116539: f555c4c
  116535: 9f06202
  116527: 3611675
  116511: bfe4751
  116479: c8afee4
v: v3
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Oct 16, 2008
1 parent ea85410 commit d8d9784
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2cc21ef843d4fb7da122239b644a1f6f0aca60a6
refs/heads/master: ee32c9732244bde4b9b59eeac2814c23e2b71f8d
6 changes: 1 addition & 5 deletions trunk/arch/x86/kernel/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1257,11 +1257,7 @@ static void ioapic_register_intr(int irq, unsigned long trigger)
{
struct irq_desc *desc;

/* first time to use this irq_desc */
if (irq < 16)
desc = irq_to_desc(irq);
else
desc = irq_to_desc_alloc(irq);
desc = irq_to_desc(irq);

if ((trigger == IOAPIC_AUTO && IO_APIC_irq_trigger(irq)) ||
trigger == IOAPIC_LEVEL)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/irqinit_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void __init init_ISA_irqs (void)
*/
for (i = 0; i < 16; i++) {
/* first time call this irq_desc */
struct irq_desc *desc = irq_to_desc_alloc(i);
struct irq_desc *desc = irq_to_desc(i);

desc->status = IRQ_DISABLED;
desc->action = NULL;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/irqinit_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void __init init_ISA_irqs(void)

for (i = 0; i < 16; i++) {
/* first time call this irq_desc */
struct irq_desc *desc = irq_to_desc_alloc(i);
struct irq_desc *desc = irq_to_desc(i);

desc->status = IRQ_DISABLED;
desc->action = NULL;
Expand Down
5 changes: 0 additions & 5 deletions trunk/include/linux/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,6 @@ static inline struct irq_desc *irq_to_desc(unsigned int irq)
return (irq < nr_irqs) ? irq_desc + irq : NULL;
}

static inline struct irq_desc *irq_to_desc_alloc(unsigned int irq)
{
return irq_to_desc(irq);
}

#ifdef CONFIG_HAVE_DYN_ARRAY
#define kstat_irqs_this_cpu(DESC) \
((DESC)->kstat_irqs[smp_processor_id()])
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/irq/chip.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void dynamic_irq_init(unsigned int irq)
unsigned long flags;

/* first time to use this irq_desc */
desc = irq_to_desc_alloc(irq);
desc = irq_to_desc(irq);
if (!desc) {
WARN(1, KERN_ERR "Trying to initialize invalid IRQ%d\n", irq);
return;
Expand Down

0 comments on commit d8d9784

Please sign in to comment.