aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2009-06-08 06:14:59 -0400
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2009-07-14 16:32:49 -0400
commit8e13d697febc1ba17e70ed88789255c8bc25aa41 (patch)
tree0ee7adfb689ee297096711cc3742f54fe1722e01 /arch/x86/kernel/apic
parent83c21bedf63ce92a2dd82ae2c7a96179b0aa4372 (diff)
x86/ioapic.c: move lost comment to what seems like appropriate place
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>
Diffstat (limited to 'arch/x86/kernel/apic')
-rw-r--r--arch/x86/kernel/apic/io_apic.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index ec52e0c045c4..a097a773bc76 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -116,13 +116,6 @@ static int __init parse_noapic(char *str)
116} 116}
117early_param("noapic", parse_noapic); 117early_param("noapic", parse_noapic);
118 118
119/*
120 * This is performance-critical, we want to do it O(1)
121 *
122 * the indexing order of this array favors 1:1 mappings
123 * between pins and IRQs.
124 */
125
126struct irq_pin_list { 119struct irq_pin_list {
127 int apic, pin; 120 int apic, pin;
128 struct irq_pin_list *next; 121 struct irq_pin_list *next;
@@ -137,6 +130,11 @@ static struct irq_pin_list *get_one_free_irq_2_pin(int node)
137 return pin; 130 return pin;
138} 131}
139 132
133/*
134 * This is performance-critical, we want to do it O(1)
135 *
136 * Most irqs are mapped 1:1 with pins.
137 */
140struct irq_cfg { 138struct irq_cfg {
141 struct irq_pin_list *irq_2_pin; 139 struct irq_pin_list *irq_2_pin;
142 cpumask_var_t domain; 140 cpumask_var_t domain;