From: Borislav Petkov Date: Sat, 10 Jan 2015 19:34:07 +0000 (+0100) Subject: x86/alternatives: Use optimized NOPs for padding X-Git-Tag: omap-for-v4.2/o2_dc~185^2~120^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fd4b6e5537cec5b56db0b22546dd439ebb26830;p=pandora-kernel.git x86/alternatives: Use optimized NOPs for padding Alternatives allow now for an empty old instruction. In this case we go and pad the space with NOPs at assembly time. However, there are the optimal, longer NOPs which should be used. Do that at patching time by adding alt_instr.padlen-sized NOPs at the old instruction address. Cc: Andy Lutomirski Signed-off-by: Borislav Petkov --- Reading git-diff-tree failed