diff options
author | Glauber Costa <gcosta@redhat.com> | 2008-05-28 23:34:19 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 06:48:21 -0400 |
commit | 3fde690011a84e19f98f77bfaa349b2119ddd2d2 (patch) | |
tree | 82222565bdbf209893a7af884b157c2972ce0984 /arch/x86/kernel/io_apic_64.c | |
parent | 86e430edf462e872ecfab28d6b8619be5ab9c300 (diff) |
x86: change __setup_vector_irq with setup_vector_irq
We create a version of it for i386, and then take the CONFIG_X86_64
ifdef out of the game. We could create a __setup_vector_irq for i386,
but it would incur in an unnecessary lock taking. Moreover, it is better
practice to only export setup_vector_irq anyway.
Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/io_apic_64.c')
-rw-r--r-- | arch/x86/kernel/io_apic_64.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/x86/kernel/io_apic_64.c b/arch/x86/kernel/io_apic_64.c index 2eba4f4c14ba..08c48750888a 100644 --- a/arch/x86/kernel/io_apic_64.c +++ b/arch/x86/kernel/io_apic_64.c | |||
@@ -801,7 +801,7 @@ static void __clear_irq_vector(int irq) | |||
801 | cpus_clear(cfg->domain); | 801 | cpus_clear(cfg->domain); |
802 | } | 802 | } |
803 | 803 | ||
804 | void __setup_vector_irq(int cpu) | 804 | static void __setup_vector_irq(int cpu) |
805 | { | 805 | { |
806 | /* Initialize vector_irq on a new cpu */ | 806 | /* Initialize vector_irq on a new cpu */ |
807 | /* This function must be called with vector_lock held */ | 807 | /* This function must be called with vector_lock held */ |
@@ -824,6 +824,13 @@ void __setup_vector_irq(int cpu) | |||
824 | } | 824 | } |
825 | } | 825 | } |
826 | 826 | ||
827 | void setup_vector_irq(int cpu) | ||
828 | { | ||
829 | spin_lock(&vector_lock); | ||
830 | __setup_vector_irq(smp_processor_id()); | ||
831 | spin_unlock(&vector_lock); | ||
832 | } | ||
833 | |||
827 | 834 | ||
828 | static struct irq_chip ioapic_chip; | 835 | static struct irq_chip ioapic_chip; |
829 | 836 | ||