diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-28 13:32:55 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-29 08:16:52 -0500 |
commit | 6bda2c8b32febeb38ee128047253751e080bad52 (patch) | |
tree | 7f6f78cf18cd69a44e987d985c57402d493d0dee /arch/x86/mach-default | |
parent | 1164dd0099c0d79146a55319670f57ab7ad1d352 (diff) |
x86: remove subarchitecture support
Remove the 32-bit subarchitecture support code.
All subarchitectures but Voyager have been converted. Voyager will be
done later or will be removed.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mach-default')
-rw-r--r-- | arch/x86/mach-default/setup.c | 162 |
1 files changed, 0 insertions, 162 deletions
diff --git a/arch/x86/mach-default/setup.c b/arch/x86/mach-default/setup.c deleted file mode 100644 index b65ff0bf730e..000000000000 --- a/arch/x86/mach-default/setup.c +++ /dev/null | |||
@@ -1,162 +0,0 @@ | |||
1 | /* | ||
2 | * Machine specific setup for generic | ||
3 | */ | ||
4 | |||
5 | #include <linux/smp.h> | ||
6 | #include <linux/init.h> | ||
7 | #include <linux/interrupt.h> | ||
8 | #include <asm/acpi.h> | ||
9 | #include <asm/arch_hooks.h> | ||
10 | #include <asm/e820.h> | ||
11 | #include <asm/setup.h> | ||
12 | |||
13 | #include <asm/genapic.h> | ||
14 | |||
15 | #ifdef CONFIG_HOTPLUG_CPU | ||
16 | #define DEFAULT_SEND_IPI (1) | ||
17 | #else | ||
18 | #define DEFAULT_SEND_IPI (0) | ||
19 | #endif | ||
20 | |||
21 | int no_broadcast = DEFAULT_SEND_IPI; | ||
22 | |||
23 | /** | ||
24 | * pre_intr_init_hook - initialisation prior to setting up interrupt vectors | ||
25 | * | ||
26 | * Description: | ||
27 | * Perform any necessary interrupt initialisation prior to setting up | ||
28 | * the "ordinary" interrupt call gates. For legacy reasons, the ISA | ||
29 | * interrupts should be initialised here if the machine emulates a PC | ||
30 | * in any way. | ||
31 | **/ | ||
32 | void __init pre_intr_init_hook(void) | ||
33 | { | ||
34 | if (x86_quirks->arch_pre_intr_init) { | ||
35 | if (x86_quirks->arch_pre_intr_init()) | ||
36 | return; | ||
37 | } | ||
38 | init_ISA_irqs(); | ||
39 | } | ||
40 | |||
41 | /** | ||
42 | * intr_init_hook - post gate setup interrupt initialisation | ||
43 | * | ||
44 | * Description: | ||
45 | * Fill in any interrupts that may have been left out by the general | ||
46 | * init_IRQ() routine. interrupts having to do with the machine rather | ||
47 | * than the devices on the I/O bus (like APIC interrupts in intel MP | ||
48 | * systems) are started here. | ||
49 | **/ | ||
50 | void __init intr_init_hook(void) | ||
51 | { | ||
52 | if (x86_quirks->arch_intr_init) { | ||
53 | if (x86_quirks->arch_intr_init()) | ||
54 | return; | ||
55 | } | ||
56 | } | ||
57 | |||
58 | /** | ||
59 | * pre_setup_arch_hook - hook called prior to any setup_arch() execution | ||
60 | * | ||
61 | * Description: | ||
62 | * generally used to activate any machine specific identification | ||
63 | * routines that may be needed before setup_arch() runs. On Voyager | ||
64 | * this is used to get the board revision and type. | ||
65 | **/ | ||
66 | void __init pre_setup_arch_hook(void) | ||
67 | { | ||
68 | } | ||
69 | |||
70 | /** | ||
71 | * trap_init_hook - initialise system specific traps | ||
72 | * | ||
73 | * Description: | ||
74 | * Called as the final act of trap_init(). Used in VISWS to initialise | ||
75 | * the various board specific APIC traps. | ||
76 | **/ | ||
77 | void __init trap_init_hook(void) | ||
78 | { | ||
79 | if (x86_quirks->arch_trap_init) { | ||
80 | if (x86_quirks->arch_trap_init()) | ||
81 | return; | ||
82 | } | ||
83 | } | ||
84 | |||
85 | static struct irqaction irq0 = { | ||
86 | .handler = timer_interrupt, | ||
87 | .flags = IRQF_DISABLED | IRQF_NOBALANCING | IRQF_IRQPOLL, | ||
88 | .mask = CPU_MASK_NONE, | ||
89 | .name = "timer" | ||
90 | }; | ||
91 | |||
92 | /** | ||
93 | * pre_time_init_hook - do any specific initialisations before. | ||
94 | * | ||
95 | **/ | ||
96 | void __init pre_time_init_hook(void) | ||
97 | { | ||
98 | if (x86_quirks->arch_pre_time_init) | ||
99 | x86_quirks->arch_pre_time_init(); | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * time_init_hook - do any specific initialisations for the system timer. | ||
104 | * | ||
105 | * Description: | ||
106 | * Must plug the system timer interrupt source at HZ into the IRQ listed | ||
107 | * in irq_vectors.h:TIMER_IRQ | ||
108 | **/ | ||
109 | void __init time_init_hook(void) | ||
110 | { | ||
111 | if (x86_quirks->arch_time_init) { | ||
112 | /* | ||
113 | * A nonzero return code does not mean failure, it means | ||
114 | * that the architecture quirk does not want any | ||
115 | * generic (timer) setup to be performed after this: | ||
116 | */ | ||
117 | if (x86_quirks->arch_time_init()) | ||
118 | return; | ||
119 | } | ||
120 | |||
121 | irq0.mask = cpumask_of_cpu(0); | ||
122 | setup_irq(0, &irq0); | ||
123 | } | ||
124 | |||
125 | #ifdef CONFIG_MCA | ||
126 | /** | ||
127 | * mca_nmi_hook - hook into MCA specific NMI chain | ||
128 | * | ||
129 | * Description: | ||
130 | * The MCA (Microchannel Architecture) has an NMI chain for NMI sources | ||
131 | * along the MCA bus. Use this to hook into that chain if you will need | ||
132 | * it. | ||
133 | **/ | ||
134 | void mca_nmi_hook(void) | ||
135 | { | ||
136 | /* | ||
137 | * If I recall correctly, there's a whole bunch of other things that | ||
138 | * we can do to check for NMI problems, but that's all I know about | ||
139 | * at the moment. | ||
140 | */ | ||
141 | pr_warning("NMI generated from unknown source!\n"); | ||
142 | } | ||
143 | #endif | ||
144 | |||
145 | static __init int no_ipi_broadcast(char *str) | ||
146 | { | ||
147 | get_option(&str, &no_broadcast); | ||
148 | pr_info("Using %s mode\n", | ||
149 | no_broadcast ? "No IPI Broadcast" : "IPI Broadcast"); | ||
150 | return 1; | ||
151 | } | ||
152 | __setup("no_ipi_broadcast=", no_ipi_broadcast); | ||
153 | |||
154 | static int __init print_ipi_mode(void) | ||
155 | { | ||
156 | pr_info("Using IPI %s mode\n", | ||
157 | no_broadcast ? "No-Shortcut" : "Shortcut"); | ||
158 | return 0; | ||
159 | } | ||
160 | |||
161 | late_initcall(print_ipi_mode); | ||
162 | |||