Linux-2.6.12-rc2
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / i386 / mach-voyager / setup.c
blobdf123fc487bb0e65fe172cf9391683ebed8c1047
1 /*
2 * Machine specific setup for generic
3 */
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>
12 void __init pre_intr_init_hook(void)
14 init_ISA_irqs();
18 * IRQ2 is cascade interrupt to second interrupt controller
20 static struct irqaction irq2 = { no_action, 0, CPU_MASK_NONE, "cascade", NULL, NULL};
22 void __init intr_init_hook(void)
24 #ifdef CONFIG_SMP
25 smp_intr_init();
26 #endif
28 if (!acpi_ioapic)
29 setup_irq(2, &irq2);
32 void __init pre_setup_arch_hook(void)
34 /* Voyagers run their CPUs from independent clocks, so disable
35 * the TSC code because we can't sync them */
36 tsc_disable = 1;
39 void __init trap_init_hook(void)
43 static struct irqaction irq0 = { timer_interrupt, SA_INTERRUPT, CPU_MASK_NONE, "timer", NULL, NULL};
45 void __init time_init_hook(void)
47 setup_irq(0, &irq0);