diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2009-04-09 04:52:18 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-10 08:35:53 -0400 |
commit | f465145235313c451164bdfa9037ac254bf00c9a (patch) | |
tree | 55cebaf22bd10b6985a2faff3e00231a7e74ea52 | |
parent | e85abf8f432bb2a13733ab7609fbb8e1500af51d (diff) |
x86: move x86_quirk_pre_intr_init() to irqinit_32.c
Impact: cleanup
In preparation for unifying irqinit_{32,64}.c, make
x86_quirk_pre_intr_init() local to irqinit_32.c.
Reviewed-by Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/include/asm/i8259.h | 4 | ||||
-rw-r--r-- | arch/x86/include/asm/setup.h | 1 | ||||
-rw-r--r-- | arch/x86/kernel/irqinit_32.c | 20 | ||||
-rw-r--r-- | arch/x86/kernel/setup.c | 18 |
4 files changed, 19 insertions, 24 deletions
diff --git a/arch/x86/include/asm/i8259.h b/arch/x86/include/asm/i8259.h index 1a99e6c092af..58d7091eeb1f 100644 --- a/arch/x86/include/asm/i8259.h +++ b/arch/x86/include/asm/i8259.h | |||
@@ -60,8 +60,4 @@ extern struct irq_chip i8259A_chip; | |||
60 | extern void mask_8259A(void); | 60 | extern void mask_8259A(void); |
61 | extern void unmask_8259A(void); | 61 | extern void unmask_8259A(void); |
62 | 62 | ||
63 | #ifdef CONFIG_X86_32 | ||
64 | extern void init_ISA_irqs(void); | ||
65 | #endif | ||
66 | |||
67 | #endif /* _ASM_X86_I8259_H */ | 63 | #endif /* _ASM_X86_I8259_H */ |
diff --git a/arch/x86/include/asm/setup.h b/arch/x86/include/asm/setup.h index bdc2ada05ae0..4093d1ed6db2 100644 --- a/arch/x86/include/asm/setup.h +++ b/arch/x86/include/asm/setup.h | |||
@@ -33,7 +33,6 @@ struct x86_quirks { | |||
33 | int (*setup_ioapic_ids)(void); | 33 | int (*setup_ioapic_ids)(void); |
34 | }; | 34 | }; |
35 | 35 | ||
36 | extern void x86_quirk_pre_intr_init(void); | ||
37 | extern void x86_quirk_intr_init(void); | 36 | extern void x86_quirk_intr_init(void); |
38 | 37 | ||
39 | extern void x86_quirk_trap_init(void); | 38 | extern void x86_quirk_trap_init(void); |
diff --git a/arch/x86/kernel/irqinit_32.c b/arch/x86/kernel/irqinit_32.c index 368b0a8836f9..0c0dedccd036 100644 --- a/arch/x86/kernel/irqinit_32.c +++ b/arch/x86/kernel/irqinit_32.c | |||
@@ -53,7 +53,7 @@ static struct irqaction fpu_irq = { | |||
53 | .name = "fpu", | 53 | .name = "fpu", |
54 | }; | 54 | }; |
55 | 55 | ||
56 | void __init init_ISA_irqs(void) | 56 | static void __init init_ISA_irqs(void) |
57 | { | 57 | { |
58 | int i; | 58 | int i; |
59 | 59 | ||
@@ -121,6 +121,24 @@ int vector_used_by_percpu_irq(unsigned int vector) | |||
121 | /* Overridden in paravirt.c */ | 121 | /* Overridden in paravirt.c */ |
122 | void init_IRQ(void) __attribute__((weak, alias("native_init_IRQ"))); | 122 | void init_IRQ(void) __attribute__((weak, alias("native_init_IRQ"))); |
123 | 123 | ||
124 | /** | ||
125 | * x86_quirk_pre_intr_init - initialisation prior to setting up interrupt vectors | ||
126 | * | ||
127 | * Description: | ||
128 | * Perform any necessary interrupt initialisation prior to setting up | ||
129 | * the "ordinary" interrupt call gates. For legacy reasons, the ISA | ||
130 | * interrupts should be initialised here if the machine emulates a PC | ||
131 | * in any way. | ||
132 | **/ | ||
133 | static void __init x86_quirk_pre_intr_init(void) | ||
134 | { | ||
135 | if (x86_quirks->arch_pre_intr_init) { | ||
136 | if (x86_quirks->arch_pre_intr_init()) | ||
137 | return; | ||
138 | } | ||
139 | init_ISA_irqs(); | ||
140 | } | ||
141 | |||
124 | void __init native_init_IRQ(void) | 142 | void __init native_init_IRQ(void) |
125 | { | 143 | { |
126 | int i; | 144 | int i; |
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index b4158439bf63..523bb697120d 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -997,24 +997,6 @@ void __init setup_arch(char **cmdline_p) | |||
997 | #ifdef CONFIG_X86_32 | 997 | #ifdef CONFIG_X86_32 |
998 | 998 | ||
999 | /** | 999 | /** |
1000 | * x86_quirk_pre_intr_init - initialisation prior to setting up interrupt vectors | ||
1001 | * | ||
1002 | * Description: | ||
1003 | * Perform any necessary interrupt initialisation prior to setting up | ||
1004 | * the "ordinary" interrupt call gates. For legacy reasons, the ISA | ||
1005 | * interrupts should be initialised here if the machine emulates a PC | ||
1006 | * in any way. | ||
1007 | **/ | ||
1008 | void __init x86_quirk_pre_intr_init(void) | ||
1009 | { | ||
1010 | if (x86_quirks->arch_pre_intr_init) { | ||
1011 | if (x86_quirks->arch_pre_intr_init()) | ||
1012 | return; | ||
1013 | } | ||
1014 | init_ISA_irqs(); | ||
1015 | } | ||
1016 | |||
1017 | /** | ||
1018 | * x86_quirk_intr_init - post gate setup interrupt initialisation | 1000 | * x86_quirk_intr_init - post gate setup interrupt initialisation |
1019 | * | 1001 | * |
1020 | * Description: | 1002 | * Description: |