diff options
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r-- | arch/x86/kernel/smpboot.c | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index e6abe8a49b1f..6a925394bc7e 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -61,6 +61,7 @@ | |||
61 | #include <asm/mtrr.h> | 61 | #include <asm/mtrr.h> |
62 | #include <asm/nmi.h> | 62 | #include <asm/nmi.h> |
63 | #include <asm/vmi.h> | 63 | #include <asm/vmi.h> |
64 | #include <asm/genapic.h> | ||
64 | #include <linux/mc146818rtc.h> | 65 | #include <linux/mc146818rtc.h> |
65 | 66 | ||
66 | #include <mach_apic.h> | 67 | #include <mach_apic.h> |
@@ -677,6 +678,12 @@ wakeup_secondary_cpu(int phys_apicid, unsigned long start_eip) | |||
677 | unsigned long send_status, accept_status = 0; | 678 | unsigned long send_status, accept_status = 0; |
678 | int maxlvt, num_starts, j; | 679 | int maxlvt, num_starts, j; |
679 | 680 | ||
681 | if (get_uv_system_type() == UV_NON_UNIQUE_APIC) { | ||
682 | send_status = uv_wakeup_secondary(phys_apicid, start_eip); | ||
683 | atomic_set(&init_deasserted, 1); | ||
684 | return send_status; | ||
685 | } | ||
686 | |||
680 | /* | 687 | /* |
681 | * Be paranoid about clearing APIC errors. | 688 | * Be paranoid about clearing APIC errors. |
682 | */ | 689 | */ |
@@ -918,16 +925,19 @@ do_rest: | |||
918 | 925 | ||
919 | atomic_set(&init_deasserted, 0); | 926 | atomic_set(&init_deasserted, 0); |
920 | 927 | ||
921 | Dprintk("Setting warm reset code and vector.\n"); | 928 | if (get_uv_system_type() != UV_NON_UNIQUE_APIC) { |
922 | 929 | ||
923 | store_NMI_vector(&nmi_high, &nmi_low); | 930 | Dprintk("Setting warm reset code and vector.\n"); |
924 | 931 | ||
925 | smpboot_setup_warm_reset_vector(start_ip); | 932 | store_NMI_vector(&nmi_high, &nmi_low); |
926 | /* | 933 | |
927 | * Be paranoid about clearing APIC errors. | 934 | smpboot_setup_warm_reset_vector(start_ip); |
928 | */ | 935 | /* |
929 | apic_write(APIC_ESR, 0); | 936 | * Be paranoid about clearing APIC errors. |
930 | apic_read(APIC_ESR); | 937 | */ |
938 | apic_write(APIC_ESR, 0); | ||
939 | apic_read(APIC_ESR); | ||
940 | } | ||
931 | 941 | ||
932 | /* | 942 | /* |
933 | * Starting actual IPI sequence... | 943 | * Starting actual IPI sequence... |
@@ -966,7 +976,8 @@ do_rest: | |||
966 | else | 976 | else |
967 | /* trampoline code not run */ | 977 | /* trampoline code not run */ |
968 | printk(KERN_ERR "Not responding.\n"); | 978 | printk(KERN_ERR "Not responding.\n"); |
969 | inquire_remote_apic(apicid); | 979 | if (get_uv_system_type() != UV_NON_UNIQUE_APIC) |
980 | inquire_remote_apic(apicid); | ||
970 | } | 981 | } |
971 | } | 982 | } |
972 | 983 | ||