Skip to content
Commit da8f9cf7 authored by Borislav Petkov (AMD)'s avatar Borislav Petkov (AMD)
Browse files

x86/alternatives: Get rid of __optimize_nops()



There's no need to carve out bits of the NOP optimization functionality
and look at JMP opcodes - simply do one more NOPs optimization pass
at the end of patching.

A lot simpler code.

Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240130105941.19707-3-bp@alien8.de
parent f796c758
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment