diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/i386/mach-voyager/setup.c |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'arch/i386/mach-voyager/setup.c')
-rw-r--r-- | arch/i386/mach-voyager/setup.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/i386/mach-voyager/setup.c b/arch/i386/mach-voyager/setup.c new file mode 100644 index 000000000000..df123fc487bb --- /dev/null +++ b/arch/i386/mach-voyager/setup.c | |||
@@ -0,0 +1,48 @@ | |||
1 | /* | ||
2 | * Machine specific setup for generic | ||
3 | */ | ||
4 | |||
5 | #include <linux/config.h> | ||
6 | #include <linux/init.h> | ||
7 | #include <linux/irq.h> | ||
8 | #include <linux/interrupt.h> | ||
9 | #include <asm/acpi.h> | ||
10 | #include <asm/arch_hooks.h> | ||
11 | |||
12 | void __init pre_intr_init_hook(void) | ||
13 | { | ||
14 | init_ISA_irqs(); | ||
15 | } | ||
16 | |||
17 | /* | ||
18 | * IRQ2 is cascade interrupt to second interrupt controller | ||
19 | */ | ||
20 | static struct irqaction irq2 = { no_action, 0, CPU_MASK_NONE, "cascade", NULL, NULL}; | ||
21 | |||
22 | void __init intr_init_hook(void) | ||
23 | { | ||
24 | #ifdef CONFIG_SMP | ||
25 | smp_intr_init(); | ||
26 | #endif | ||
27 | |||
28 | if (!acpi_ioapic) | ||
29 | setup_irq(2, &irq2); | ||
30 | } | ||
31 | |||
32 | void __init pre_setup_arch_hook(void) | ||
33 | { | ||
34 | /* Voyagers run their CPUs from independent clocks, so disable | ||
35 | * the TSC code because we can't sync them */ | ||
36 | tsc_disable = 1; | ||
37 | } | ||
38 | |||
39 | void __init trap_init_hook(void) | ||
40 | { | ||
41 | } | ||
42 | |||
43 | static struct irqaction irq0 = { timer_interrupt, SA_INTERRUPT, CPU_MASK_NONE, "timer", NULL, NULL}; | ||
44 | |||
45 | void __init time_init_hook(void) | ||
46 | { | ||
47 | setup_irq(0, &irq0); | ||
48 | } | ||