Skip to content

Commit

Permalink
x86/ioapic.c: move lost comment to what seems like appropriate place
Browse files Browse the repository at this point in the history
The comment got separated from its subject, so move it to what
appears to be the right place, and update to describe the current
structure.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
  • Loading branch information
Jeremy Fitzhardinge committed Jul 14, 2009
1 parent 83c21be commit 8e13d69
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions arch/x86/kernel/apic/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,6 @@ static int __init parse_noapic(char *str)
}
early_param("noapic", parse_noapic);

/*
* This is performance-critical, we want to do it O(1)
*
* the indexing order of this array favors 1:1 mappings
* between pins and IRQs.
*/

struct irq_pin_list {
int apic, pin;
struct irq_pin_list *next;
Expand All @@ -137,6 +130,11 @@ static struct irq_pin_list *get_one_free_irq_2_pin(int node)
return pin;
}

/*
* This is performance-critical, we want to do it O(1)
*
* Most irqs are mapped 1:1 with pins.
*/
struct irq_cfg {
struct irq_pin_list *irq_2_pin;
cpumask_var_t domain;
Expand Down

0 comments on commit 8e13d69

Please sign in to comment.