File tree Expand file tree Collapse file tree 3 files changed +2
-16
lines changed Expand file tree Collapse file tree 3 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ static bool skip_addr(void *dest)
133
133
/* Accounts directly */
134
134
if (dest == ret_from_fork )
135
135
return true;
136
- #ifdef CONFIG_HOTPLUG_CPU
136
+ #if defined( CONFIG_HOTPLUG_CPU ) && defined( CONFIG_AMD_MEM_ENCRYPT )
137
137
if (dest == soft_restart_cpu )
138
138
return true;
139
139
#endif
Original file line number Diff line number Diff line change @@ -138,20 +138,6 @@ SYM_CODE_START(startup_32)
138
138
jmp .Ldefault_entry
139
139
SYM_CODE_END(startup_32)
140
140
141
- #ifdef CONFIG_HOTPLUG_CPU
142
- /*
143
- * Entry point for soft restart of a CPU. Invoked from xxx_play_dead() for
144
- * restarting the boot CPU or for restarting SEV guest CPUs after CPU hot
145
- * unplug. Everything is set up already except the stack.
146
- */
147
- SYM_FUNC_START(soft_restart_cpu)
148
- movl initial_stack, %ecx
149
- movl %ecx , %esp
150
- call *(initial_code)
151
- 1: jmp 1b
152
- SYM_FUNC_END(soft_restart_cpu)
153
- #endif
154
-
155
141
/*
156
142
* Non-boot CPU entry point; entered from trampoline.S
157
143
* We can't lgdt here, because lgdt itself uses a data segment, but
Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ SYM_CODE_END(secondary_startup_64)
375
375
#include "verify_cpu.S"
376
376
#include "sev_verify_cbit.S"
377
377
378
- #ifdef CONFIG_HOTPLUG_CPU
378
+ #if defined( CONFIG_HOTPLUG_CPU) && defined(CONFIG_AMD_MEM_ENCRYPT)
379
379
/*
380
380
* Entry point for soft restart of a CPU. Invoked from xxx_play_dead() for
381
381
* restarting the boot CPU or for restarting SEV guest CPUs after CPU hot
You can’t perform that action at this time.
0 commit comments