From 12e47c2f9f0766aa487e3ca39d4bf972b62411d4 Mon Sep 17 00:00:00 2001 From: Jeremy Fitzhardinge Date: Mon, 8 Jun 2009 03:14:59 -0700 Subject: [PATCH] --- yaml --- r: 158623 b: refs/heads/master c: 8e13d697febc1ba17e70ed88789255c8bc25aa41 h: refs/heads/master i: 158621: ed987167534f90be2127d439be6f49d78058af54 158619: 6db4d2c963fa5e180bfa582252ba7d0b655029c9 158615: bc902a61ce0a7d3d3546b2012c92a6f095bd2be6 158607: 868ff0ad3f1239198f9551a7036d676075be34ff 158591: ce1dbcbabffd3f352ce8dfbe339293089a05d3cd v: v3 --- [refs] | 2 +- trunk/arch/x86/kernel/apic/io_apic.c | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/[refs] b/[refs] index b3f9d9f290ac..9a4735cc92c0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 83c21bedf63ce92a2dd82ae2c7a96179b0aa4372 +refs/heads/master: 8e13d697febc1ba17e70ed88789255c8bc25aa41 diff --git a/trunk/arch/x86/kernel/apic/io_apic.c b/trunk/arch/x86/kernel/apic/io_apic.c index ec52e0c045c4..a097a773bc76 100644 --- a/trunk/arch/x86/kernel/apic/io_apic.c +++ b/trunk/arch/x86/kernel/apic/io_apic.c @@ -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; @@ -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;