Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124971
b: refs/heads/master
c: 18eefed
h: refs/heads/master
i:
  124969: 00f267a
  124967: f42c6f6
v: v3
  • Loading branch information
KOSAKI Motohiro authored and Ingo Molnar committed Dec 26, 2008
1 parent c465559 commit b0c2be0
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 39 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: 26ddd8d5cac8a563953d5febe8c6e40909f7bce1
refs/heads/master: 18eefedfe8ad33e8fc7614c13359e29a9fab4644
10 changes: 0 additions & 10 deletions trunk/arch/x86/kernel/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1345,8 +1345,6 @@ void __setup_vector_irq(int cpu)

/* Mark the inuse vectors */
for_each_irq_desc(irq, desc) {
if (!desc)
continue;
cfg = desc->chip_data;
if (!cpu_isset(cpu, cfg->domain))
continue;
Expand Down Expand Up @@ -1730,8 +1728,6 @@ __apicdebuginit(void) print_IO_APIC(void)
for_each_irq_desc(irq, desc) {
struct irq_pin_list *entry;

if (!desc)
continue;
cfg = desc->chip_data;
entry = cfg->irq_2_pin;
if (!entry)
Expand Down Expand Up @@ -2378,9 +2374,6 @@ static void ir_irq_migration(struct work_struct *work)
struct irq_desc *desc;

for_each_irq_desc(irq, desc) {
if (!desc)
continue;

if (desc->status & IRQ_MOVE_PENDING) {
unsigned long flags;

Expand Down Expand Up @@ -2671,9 +2664,6 @@ static inline void init_IO_APIC_traps(void)
* 0x80, because int 0x80 is hm, kind of importantish. ;)
*/
for_each_irq_desc(irq, desc) {
if (!desc)
continue;

cfg = desc->chip_data;
if (IO_APIC_IRQ(irq) && cfg && !cfg->vector) {
/*
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/xen/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ static void init_evtchn_cpu_bindings(void)

/* By default all event channels notify CPU#0. */
for_each_irq_desc(i, desc) {
if (!desc)
continue;

desc->affinity = cpumask_of_cpu(0);
}
#endif
Expand Down
8 changes: 6 additions & 2 deletions trunk/include/linux/irqnr.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ extern struct irq_desc *irq_to_desc(unsigned int irq);

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


# define for_each_irq_desc_reverse(irq, desc) \
for (irq = nr_irqs - 1, desc = irq_to_desc(irq); irq >= 0; \
irq--, desc = irq_to_desc(irq))
irq--, desc = irq_to_desc(irq)) \
if (desc)

#endif /* CONFIG_GENERIC_HARDIRQS */

Expand Down
15 changes: 0 additions & 15 deletions trunk/kernel/irq/autoprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ unsigned long probe_irq_on(void)
* flush such a longstanding irq before considering it as spurious.
*/
for_each_irq_desc_reverse(i, desc) {
if (!desc)
continue;

spin_lock_irq(&desc->lock);
if (!desc->action && !(desc->status & IRQ_NOPROBE)) {
/*
Expand Down Expand Up @@ -71,9 +68,6 @@ unsigned long probe_irq_on(void)
* happened in the previous stage, it may have masked itself)
*/
for_each_irq_desc_reverse(i, desc) {
if (!desc)
continue;

spin_lock_irq(&desc->lock);
if (!desc->action && !(desc->status & IRQ_NOPROBE)) {
desc->status |= IRQ_AUTODETECT | IRQ_WAITING;
Expand All @@ -92,9 +86,6 @@ unsigned long probe_irq_on(void)
* Now filter out any obviously spurious interrupts
*/
for_each_irq_desc(i, desc) {
if (!desc)
continue;

spin_lock_irq(&desc->lock);
status = desc->status;

Expand Down Expand Up @@ -133,9 +124,6 @@ unsigned int probe_irq_mask(unsigned long val)
int i;

for_each_irq_desc(i, desc) {
if (!desc)
continue;

spin_lock_irq(&desc->lock);
status = desc->status;

Expand Down Expand Up @@ -178,9 +166,6 @@ int probe_irq_off(unsigned long val)
unsigned int status;

for_each_irq_desc(i, desc) {
if (!desc)
continue;

spin_lock_irq(&desc->lock);
status = desc->status;

Expand Down
3 changes: 0 additions & 3 deletions trunk/kernel/irq/handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,6 @@ void early_init_irq_lock_class(void)
int i;

for_each_irq_desc(i, desc) {
if (!desc)
continue;

lockdep_set_class(&desc->lock, &irq_desc_lock_class);
}
}
Expand Down
5 changes: 0 additions & 5 deletions trunk/kernel/irq/spurious.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ static int misrouted_irq(int irq)
int i, ok = 0;

for_each_irq_desc(i, desc) {
if (!desc)
continue;

if (!i)
continue;

Expand All @@ -115,8 +112,6 @@ static void poll_spurious_irqs(unsigned long dummy)
for_each_irq_desc(i, desc) {
unsigned int status;

if (!desc)
continue;
if (!i)
continue;

Expand Down

0 comments on commit b0c2be0

Please sign in to comment.