|
@@ -213,10 +213,10 @@ static void __init spectre_v2_select_mitigation(void)
|
|
return;
|
|
return;
|
|
|
|
|
|
case SPECTRE_V2_CMD_FORCE:
|
|
case SPECTRE_V2_CMD_FORCE:
|
|
- /* FALLTRHU */
|
|
|
|
case SPECTRE_V2_CMD_AUTO:
|
|
case SPECTRE_V2_CMD_AUTO:
|
|
- goto retpoline_auto;
|
|
|
|
-
|
|
|
|
|
|
+ if (IS_ENABLED(CONFIG_RETPOLINE))
|
|
|
|
+ goto retpoline_auto;
|
|
|
|
+ break;
|
|
case SPECTRE_V2_CMD_RETPOLINE_AMD:
|
|
case SPECTRE_V2_CMD_RETPOLINE_AMD:
|
|
if (IS_ENABLED(CONFIG_RETPOLINE))
|
|
if (IS_ENABLED(CONFIG_RETPOLINE))
|
|
goto retpoline_amd;
|
|
goto retpoline_amd;
|