diff options
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r-- | arch/x86/kernel/smpboot.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 083e99d1b7df..837c81e99edf 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -1166,6 +1166,20 @@ out: | |||
1166 | preempt_enable(); | 1166 | preempt_enable(); |
1167 | } | 1167 | } |
1168 | 1168 | ||
1169 | void arch_disable_nonboot_cpus_begin(void) | ||
1170 | { | ||
1171 | /* | ||
1172 | * Avoid the smp alternatives switch during the disable_nonboot_cpus(). | ||
1173 | * In the suspend path, we will be back in the SMP mode shortly anyways. | ||
1174 | */ | ||
1175 | skip_smp_alternatives = true; | ||
1176 | } | ||
1177 | |||
1178 | void arch_disable_nonboot_cpus_end(void) | ||
1179 | { | ||
1180 | skip_smp_alternatives = false; | ||
1181 | } | ||
1182 | |||
1169 | void arch_enable_nonboot_cpus_begin(void) | 1183 | void arch_enable_nonboot_cpus_begin(void) |
1170 | { | 1184 | { |
1171 | set_mtrr_aps_delayed_init(); | 1185 | set_mtrr_aps_delayed_init(); |