Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145586
b: refs/heads/master
c: f465145
h: refs/heads/master
v: v3
  • Loading branch information
Pekka Enberg authored and Ingo Molnar committed Apr 10, 2009
1 parent 6d34b6d commit 66e1d4b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 25 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e85abf8f432bb2a13733ab7609fbb8e1500af51d
refs/heads/master: f465145235313c451164bdfa9037ac254bf00c9a
4 changes: 0 additions & 4 deletions trunk/arch/x86/include/asm/i8259.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
1 change: 0 additions & 1 deletion trunk/arch/x86/include/asm/setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
20 changes: 19 additions & 1 deletion trunk/arch/x86/kernel/irqinit_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down
18 changes: 0 additions & 18 deletions trunk/arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -996,24 +996,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
*
Expand Down

0 comments on commit 66e1d4b

Please sign in to comment.