public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/13] x86: move x86_quirk_pre_intr_init() to irqinit_32.c
@ 2009-04-07 13:48 Pekka Enberg
  2009-04-07 13:48 ` [PATCH 02/13] x86: move init_ISA_irqs() in irqinit_32.c to match ordering in irqinit_64.c Pekka Enberg
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Pekka Enberg @ 2009-04-07 13:48 UTC (permalink / raw)
  To: ming; +Cc: penberg, x86, linux-kernel

Impact: cleanup

In preparation for unifying irqinit_{32,64}.c, make
x86_quirk_pre_intr_init() local to irqinit_32.c.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
---
 arch/x86/include/asm/i8259.h |    4 ----
 arch/x86/include/asm/setup.h |    1 -
 arch/x86/kernel/irqinit_32.c |   20 +++++++++++++++++++-
 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 1a99e6c..58d7091 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;
 extern void mask_8259A(void);
 extern void unmask_8259A(void);
 
-#ifdef CONFIG_X86_32
-extern void init_ISA_irqs(void);
-#endif
-
 #endif /* _ASM_X86_I8259_H */
diff --git a/arch/x86/include/asm/setup.h b/arch/x86/include/asm/setup.h
index bdc2ada..4093d1e 100644
--- a/arch/x86/include/asm/setup.h
+++ b/arch/x86/include/asm/setup.h
@@ -33,7 +33,6 @@ struct x86_quirks {
 	int (*setup_ioapic_ids)(void);
 };
 
-extern void x86_quirk_pre_intr_init(void);
 extern void x86_quirk_intr_init(void);
 
 extern void x86_quirk_trap_init(void);
diff --git a/arch/x86/kernel/irqinit_32.c b/arch/x86/kernel/irqinit_32.c
index 368b0a8..0c0dedc 100644
--- a/arch/x86/kernel/irqinit_32.c
+++ b/arch/x86/kernel/irqinit_32.c
@@ -53,7 +53,7 @@ static struct irqaction fpu_irq = {
 	.name = "fpu",
 };
 
-void __init init_ISA_irqs(void)
+static void __init init_ISA_irqs(void)
 {
 	int i;
 
@@ -121,6 +121,24 @@ int vector_used_by_percpu_irq(unsigned int vector)
 /* Overridden in paravirt.c */
 void init_IRQ(void) __attribute__((weak, alias("native_init_IRQ")));
 
+/**
+ * x86_quirk_pre_intr_init - initialisation prior to setting up interrupt vectors
+ *
+ * Description:
+ *	Perform any necessary interrupt initialisation prior to setting up
+ *	the "ordinary" interrupt call gates.  For legacy reasons, the ISA
+ *	interrupts should be initialised here if the machine emulates a PC
+ *	in any way.
+ **/
+static void __init x86_quirk_pre_intr_init(void)
+{
+	if (x86_quirks->arch_pre_intr_init) {
+		if (x86_quirks->arch_pre_intr_init())
+			return;
+	}
+	init_ISA_irqs();
+}
+
 void __init native_init_IRQ(void)
 {
 	int i;
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index b415843..523bb69 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -997,24 +997,6 @@ void __init setup_arch(char **cmdline_p)
 #ifdef CONFIG_X86_32
 
 /**
- * x86_quirk_pre_intr_init - initialisation prior to setting up interrupt vectors
- *
- * Description:
- *	Perform any necessary interrupt initialisation prior to setting up
- *	the "ordinary" interrupt call gates.  For legacy reasons, the ISA
- *	interrupts should be initialised here if the machine emulates a PC
- *	in any way.
- **/
-void __init x86_quirk_pre_intr_init(void)
-{
-	if (x86_quirks->arch_pre_intr_init) {
-		if (x86_quirks->arch_pre_intr_init())
-			return;
-	}
-	init_ISA_irqs();
-}
-
-/**
  * x86_quirk_intr_init - post gate setup interrupt initialisation
  *
  * Description:
-- 
1.5.6.3


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-04-07 18:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-07 13:48 [PATCH 01/13] x86: move x86_quirk_pre_intr_init() to irqinit_32.c Pekka Enberg
2009-04-07 13:48 ` [PATCH 02/13] x86: move init_ISA_irqs() in irqinit_32.c to match ordering in irqinit_64.c Pekka Enberg
2009-04-07 13:48 ` [PATCH 03/13] x86: introduce smp_intr_init() in irqinit_32.c Pekka Enberg
2009-04-07 13:48 ` [PATCH 04/13] x86: introduce apic_intr_init() " Pekka Enberg
2009-04-07 13:48 ` [PATCH 05/13] x86: use identical loop constructs in 32-bit and 64-bit native_init_IRQ() Pekka Enberg
2009-04-07 13:48 ` [PATCH 06/13] x86: unify smp_intr_init() in irqinit_{32,64}.h Pekka Enberg
2009-04-07 13:48 ` [PATCH 07/13] x86: unify init_ISA_irqs() in irqinit_{32,64}.c Pekka Enberg
2009-04-07 13:48 ` [PATCH 08/13] x86: unify native_init_IRQ() " Pekka Enberg
2009-04-07 13:48 ` [PATCH 09/13] x86: unify trivial differences " Pekka Enberg
2009-04-07 13:48 ` [PATCH 10/13] x86: unify apic_intr_init() " Pekka Enberg
2009-04-07 13:48 ` [PATCH 11/13] x86: unify irqinit_{32,64}.c into irqinit.c Pekka Enberg
2009-04-07 13:48 ` [PATCH 12/13] x86: define IA32_SYSCALL_VECTOR on 32-bit to reduce ifdefs Pekka Enberg
2009-04-07 13:48 ` [PATCH 13/13] x86: remove some ifdefs from native_init_IRQ() Pekka Enberg
2009-04-07 15:11 ` [PATCH 01/13] x86: move x86_quirk_pre_intr_init() to irqinit_32.c Cyrill Gorcunov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox