aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mach-generic
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-28 12:49:31 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-28 17:20:38 -0500
commitb11b867f78910192fc54bd0d09148cf768c7aaad (patch)
tree2b2ab37f5f4730fdafa07c2d43be1d06b9d502e2 /arch/x86/mach-generic
parent5a44632f77a9c867621f7bf80c233eac75fea672 (diff)
x86, summit: consolidate code
Consolidate all the Summit code into a single file: arch/x86/kernel/summit_32.c. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mach-generic')
-rw-r--r--arch/x86/mach-generic/Makefile1
-rw-r--r--arch/x86/mach-generic/summit.c94
2 files changed, 0 insertions, 95 deletions
diff --git a/arch/x86/mach-generic/Makefile b/arch/x86/mach-generic/Makefile
index 6730f4e7c744..78ab5735cb80 100644
--- a/arch/x86/mach-generic/Makefile
+++ b/arch/x86/mach-generic/Makefile
@@ -6,6 +6,5 @@ EXTRA_CFLAGS := -Iarch/x86/kernel
6 6
7obj-y := probe.o default.o 7obj-y := probe.o default.o
8obj-$(CONFIG_X86_NUMAQ) += numaq.o 8obj-$(CONFIG_X86_NUMAQ) += numaq.o
9obj-$(CONFIG_X86_SUMMIT) += summit.o
10obj-$(CONFIG_X86_BIGSMP) += bigsmp.o 9obj-$(CONFIG_X86_BIGSMP) += bigsmp.o
11obj-$(CONFIG_X86_ES7000) += es7000.o 10obj-$(CONFIG_X86_ES7000) += es7000.o
diff --git a/arch/x86/mach-generic/summit.c b/arch/x86/mach-generic/summit.c
deleted file mode 100644
index 673a64f8b463..000000000000
--- a/arch/x86/mach-generic/summit.c
+++ /dev/null
@@ -1,94 +0,0 @@
1/*
2 * APIC driver for the IBM "Summit" chipset.
3 */
4#define APIC_DEFINITION 1
5#include <linux/threads.h>
6#include <linux/cpumask.h>
7#include <asm/mpspec.h>
8#include <asm/genapic.h>
9#include <asm/fixmap.h>
10#include <asm/apicdef.h>
11#include <linux/kernel.h>
12#include <linux/string.h>
13#include <linux/init.h>
14#include <asm/summit/apicdef.h>
15#include <linux/smp.h>
16#include <asm/summit/apic.h>
17#include <asm/summit/ipi.h>
18#include <asm/summit/mpparse.h>
19
20static int probe_summit(void)
21{
22 /* probed later in mptable/ACPI hooks */
23 return 0;
24}
25
26static void summit_vector_allocation_domain(int cpu, cpumask_t *retmask)
27{
28 /* Careful. Some cpus do not strictly honor the set of cpus
29 * specified in the interrupt destination when using lowest
30 * priority interrupt delivery mode.
31 *
32 * In particular there was a hyperthreading cpu observed to
33 * deliver interrupts to the wrong hyperthread when only one
34 * hyperthread was specified in the interrupt desitination.
35 */
36 *retmask = (cpumask_t){ { [0] = APIC_ALL_CPUS, } };
37}
38
39struct genapic apic_summit = {
40
41 .name = "summit",
42 .probe = probe_summit,
43 .acpi_madt_oem_check = summit_acpi_madt_oem_check,
44 .apic_id_registered = summit_apic_id_registered,
45
46 .irq_delivery_mode = dest_LowestPrio,
47 /* logical delivery broadcast to all CPUs: */
48 .irq_dest_mode = 1,
49
50 .target_cpus = summit_target_cpus,
51 .disable_esr = 1,
52 .dest_logical = APIC_DEST_LOGICAL,
53 .check_apicid_used = summit_check_apicid_used,
54 .check_apicid_present = summit_check_apicid_present,
55
56 .vector_allocation_domain = summit_vector_allocation_domain,
57 .init_apic_ldr = summit_init_apic_ldr,
58
59 .ioapic_phys_id_map = summit_ioapic_phys_id_map,
60 .setup_apic_routing = summit_setup_apic_routing,
61 .multi_timer_check = NULL,
62 .apicid_to_node = summit_apicid_to_node,
63 .cpu_to_logical_apicid = summit_cpu_to_logical_apicid,
64 .cpu_present_to_apicid = summit_cpu_present_to_apicid,
65 .apicid_to_cpu_present = summit_apicid_to_cpu_present,
66 .setup_portio_remap = NULL,
67 .check_phys_apicid_present = summit_check_phys_apicid_present,
68 .enable_apic_mode = NULL,
69 .phys_pkg_id = summit_phys_pkg_id,
70 .mps_oem_check = summit_mps_oem_check,
71
72 .get_apic_id = summit_get_apic_id,
73 .set_apic_id = NULL,
74 .apic_id_mask = 0xFF << 24,
75
76 .cpu_mask_to_apicid = summit_cpu_mask_to_apicid,
77 .cpu_mask_to_apicid_and = summit_cpu_mask_to_apicid_and,
78
79 .send_IPI_mask = summit_send_IPI_mask,
80 .send_IPI_mask_allbutself = NULL,
81 .send_IPI_allbutself = summit_send_IPI_allbutself,
82 .send_IPI_all = summit_send_IPI_all,
83 .send_IPI_self = NULL,
84
85 .wakeup_cpu = NULL,
86 .trampoline_phys_low = DEFAULT_TRAMPOLINE_PHYS_LOW,
87 .trampoline_phys_high = DEFAULT_TRAMPOLINE_PHYS_HIGH,
88
89 .wait_for_init_deassert = default_wait_for_init_deassert,
90
91 .smp_callin_clear_local_apic = NULL,
92 .store_NMI_vector = NULL,
93 .inquire_remote_apic = default_inquire_remote_apic,
94};