diff options
author | Jacob Pan <jacob.jun.pan@intel.com> | 2009-11-09 14:27:04 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-19 19:25:17 -0500 |
commit | b81bb373a7e832a43921356aa1291044d7f52fb1 (patch) | |
tree | 8008f5c30cae5bf5d8480b590cee63db01034333 /arch/x86/kernel/smpboot.c | |
parent | ef3548668c02cc8c3922f4423f32b53e662811c6 (diff) |
x86, pic: Make use of legacy_pic abstraction
This patch replaces legacy PIC-related global variable and functions
with the new legacy_pic abstraction.
Signed-off-by: Jacob Pan <jacob.jun.pan@intel.com>
LKML-Reference: <43F901BD926A4E43B106BF17856F07559FB80D04@orsmsx508.amr.corp.intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r-- | arch/x86/kernel/smpboot.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 3e6150d421e4..f7a52f4a21a5 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -68,6 +68,7 @@ | |||
68 | #include <linux/mc146818rtc.h> | 68 | #include <linux/mc146818rtc.h> |
69 | 69 | ||
70 | #include <asm/smpboot_hooks.h> | 70 | #include <asm/smpboot_hooks.h> |
71 | #include <asm/i8259.h> | ||
71 | 72 | ||
72 | #ifdef CONFIG_X86_32 | 73 | #ifdef CONFIG_X86_32 |
73 | u8 apicid_2_node[MAX_APICID]; | 74 | u8 apicid_2_node[MAX_APICID]; |
@@ -287,9 +288,9 @@ notrace static void __cpuinit start_secondary(void *unused) | |||
287 | check_tsc_sync_target(); | 288 | check_tsc_sync_target(); |
288 | 289 | ||
289 | if (nmi_watchdog == NMI_IO_APIC) { | 290 | if (nmi_watchdog == NMI_IO_APIC) { |
290 | disable_8259A_irq(0); | 291 | legacy_pic->chip->mask(0); |
291 | enable_NMI_through_LVT0(); | 292 | enable_NMI_through_LVT0(); |
292 | enable_8259A_irq(0); | 293 | legacy_pic->chip->unmask(0); |
293 | } | 294 | } |
294 | 295 | ||
295 | #ifdef CONFIG_X86_32 | 296 | #ifdef CONFIG_X86_32 |