Commit 55ca901
x86/srso: Remove 'pred_cmd' label
SBPB is only enabled in two distinct cases:
1) when SRSO has been disabled with srso=off
2) when SRSO has been fixed (in future HW)
Simplify the control flow by getting rid of the 'pred_cmd' label and
moving the SBPB enablement check to the two corresponding code sites.
This makes it more clear when exactly SBPB gets enabled.
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/bb20e8569cfa144def5e6f25e610804bc4974de2.1693889988.git.jpoimboe@kernel.org1 parent eb54be2 commit 55ca901
1 file changed
Lines changed: 13 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2410 | 2410 | | |
2411 | 2411 | | |
2412 | 2412 | | |
2413 | | - | |
2414 | | - | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
2415 | 2421 | | |
2416 | 2422 | | |
2417 | 2423 | | |
2418 | 2424 | | |
2419 | 2425 | | |
| 2426 | + | |
| 2427 | + | |
2420 | 2428 | | |
2421 | 2429 | | |
2422 | 2430 | | |
| |||
2439 | 2447 | | |
2440 | 2448 | | |
2441 | 2449 | | |
2442 | | - | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
2443 | 2453 | | |
2444 | 2454 | | |
2445 | 2455 | | |
| |||
2501 | 2511 | | |
2502 | 2512 | | |
2503 | 2513 | | |
2504 | | - | |
2505 | | - | |
2506 | | - | |
2507 | | - | |
2508 | | - | |
2509 | 2514 | | |
2510 | 2515 | | |
2511 | 2516 | | |
| |||
0 commit comments