Pārlūkot izejas kodu

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>
Jeremy Fitzhardinge 16 gadi atpakaļ
vecāks
revīzija
8e13d697fe
1 mainītis faili ar 5 papildinājumiem un 7 dzēšanām
  1. 5 7
      arch/x86/kernel/apic/io_apic.c

+ 5 - 7
arch/x86/kernel/apic/io_apic.c

@@ -116,13 +116,6 @@ static int __init parse_noapic(char *str)
 }
 }
 early_param("noapic", parse_noapic);
 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 {
 struct irq_pin_list {
 	int apic, pin;
 	int apic, pin;
 	struct irq_pin_list *next;
 	struct irq_pin_list *next;
@@ -137,6 +130,11 @@ static struct irq_pin_list *get_one_free_irq_2_pin(int node)
 	return pin;
 	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_cfg {
 	struct irq_pin_list *irq_2_pin;
 	struct irq_pin_list *irq_2_pin;
 	cpumask_var_t domain;
 	cpumask_var_t domain;