We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ac2f49 commit 108fab4Copy full SHA for 108fab4
arch/x86/kernel/cpu/bugs.c
@@ -532,17 +532,12 @@ static enum ssb_mitigation __init __ssb_select_mitigation(void)
532
* Intel uses the SPEC CTRL MSR Bit(2) for this, while AMD may
533
* use a completely different MSR and bit dependent on family.
534
*/
535
- switch (boot_cpu_data.x86_vendor) {
536
- case X86_VENDOR_INTEL:
537
- case X86_VENDOR_AMD:
538
- if (!static_cpu_has(X86_FEATURE_MSR_SPEC_CTRL)) {
539
- x86_amd_ssb_disable();
540
- break;
541
- }
+ if (!static_cpu_has(X86_FEATURE_MSR_SPEC_CTRL))
+ x86_amd_ssb_disable();
+ else {
542
x86_spec_ctrl_base |= SPEC_CTRL_SSBD;
543
x86_spec_ctrl_mask |= SPEC_CTRL_SSBD;
544
wrmsrl(MSR_IA32_SPEC_CTRL, x86_spec_ctrl_base);
545
546
}
547
548
0 commit comments