diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-02-17 02:02:14 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-17 06:22:20 -0500 |
commit | c1eeb2de41d7015678bdd412b48a5f071b84e29a (patch) | |
tree | 6af99f46f557f9e854e882deac52d23b2fadb5a2 /arch/x86/kernel/genapic_flat_64.c | |
parent | 06cd9a7dc8a58186060a91b6ddc031057435fd34 (diff) |
x86: fold apic_ops into genapic
Impact: cleanup
make it simpler, don't need have one extra struct.
v2: fix the sgi_uv build
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/genapic_flat_64.c')
-rw-r--r-- | arch/x86/kernel/genapic_flat_64.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/arch/x86/kernel/genapic_flat_64.c b/arch/x86/kernel/genapic_flat_64.c index 249d2d3c034c..36ee760fd133 100644 --- a/arch/x86/kernel/genapic_flat_64.c +++ b/arch/x86/kernel/genapic_flat_64.c | |||
@@ -17,8 +17,8 @@ | |||
17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
18 | #include <linux/hardirq.h> | 18 | #include <linux/hardirq.h> |
19 | #include <asm/smp.h> | 19 | #include <asm/smp.h> |
20 | #include <asm/ipi.h> | ||
21 | #include <asm/genapic.h> | 20 | #include <asm/genapic.h> |
21 | #include <asm/ipi.h> | ||
22 | 22 | ||
23 | #ifdef CONFIG_ACPI | 23 | #ifdef CONFIG_ACPI |
24 | #include <acpi/acpi_bus.h> | 24 | #include <acpi/acpi_bus.h> |
@@ -229,6 +229,13 @@ struct genapic apic_flat = { | |||
229 | .smp_callin_clear_local_apic = NULL, | 229 | .smp_callin_clear_local_apic = NULL, |
230 | .store_NMI_vector = NULL, | 230 | .store_NMI_vector = NULL, |
231 | .inquire_remote_apic = NULL, | 231 | .inquire_remote_apic = NULL, |
232 | |||
233 | .read = native_apic_mem_read, | ||
234 | .write = native_apic_mem_write, | ||
235 | .icr_read = native_apic_icr_read, | ||
236 | .icr_write = native_apic_icr_write, | ||
237 | .wait_icr_idle = native_apic_wait_icr_idle, | ||
238 | .safe_wait_icr_idle = native_safe_apic_wait_icr_idle, | ||
232 | }; | 239 | }; |
233 | 240 | ||
234 | /* | 241 | /* |
@@ -374,4 +381,11 @@ struct genapic apic_physflat = { | |||
374 | .smp_callin_clear_local_apic = NULL, | 381 | .smp_callin_clear_local_apic = NULL, |
375 | .store_NMI_vector = NULL, | 382 | .store_NMI_vector = NULL, |
376 | .inquire_remote_apic = NULL, | 383 | .inquire_remote_apic = NULL, |
384 | |||
385 | .read = native_apic_mem_read, | ||
386 | .write = native_apic_mem_write, | ||
387 | .icr_read = native_apic_icr_read, | ||
388 | .icr_write = native_apic_icr_write, | ||
389 | .wait_icr_idle = native_apic_wait_icr_idle, | ||
390 | .safe_wait_icr_idle = native_safe_apic_wait_icr_idle, | ||
377 | }; | 391 | }; |