Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116540
b: refs/heads/master
c: 70dd4d9
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Oct 16, 2008
1 parent f555c4c commit 623c474
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 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: 3235e936c0cc3589309280b6f59e5096779adae3
refs/heads/master: 70dd4d992ab324a59cdcd6bedc3f4e729863d514
9 changes: 0 additions & 9 deletions trunk/include/linux/interrupt.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@
#include <asm/ptrace.h>
#include <asm/system.h>

#ifndef CONFIG_GENERIC_HARDIRQS
# define for_each_irq_desc(irq, desc) \
for (irq = 0; irq < nr_irqs; irq++)

# define nr_irqs NR_IRQS
#else
extern int nr_irqs;
#endif

/*
* These correspond to the IORESOURCE_IRQ_* defines in
* linux/ioport.h to select the interrupt line behaviour. When
Expand Down
17 changes: 12 additions & 5 deletions trunk/include/linux/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@

#include <linux/smp.h>

#ifndef CONFIG_GENERIC_HARDIRQS
# define nr_irqs NR_IRQS

# define for_each_irq_desc(irq, desc) \
for (irq = 0; irq < nr_irqs; irq++)
#else
extern int nr_irqs;

# define for_each_irq_desc(irq, desc) \
for (irq = 0, desc = irq_desc; irq < nr_irqs; irq++, desc++)
#endif

#ifndef CONFIG_S390

#include <linux/linkage.h>
Expand Down Expand Up @@ -204,11 +216,6 @@ extern struct irq_desc irq_desc[NR_IRQS];
extern struct irq_desc *irq_desc;
#endif

#ifdef CONFIG_GENERIC_HARDIRQS
#define for_each_irq_desc(irq, desc) \
for (irq = 0, desc = irq_desc; irq < nr_irqs; irq++, desc = &irq_desc[irq])
#endif

#else

extern struct irq_desc *sparse_irqs;
Expand Down

0 comments on commit 623c474

Please sign in to comment.