OSDN Git Service

x86/lib/memset_64.S: Convert to ALTERNATIVE_2 macro
authorBorislav Petkov <bp@suse.de>
Wed, 4 Feb 2015 07:57:00 +0000 (08:57 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 23 Feb 2015 12:50:59 +0000 (13:50 +0100)
commit84d95ad4cb9015ea953bf14cea05ba371d4d42bb
tree92667e47bc9e3dfee4c147141da1cf0d07777b13
parenta930dc4543a2b213deb9fde12682716edff8a4a6
x86/lib/memset_64.S: Convert to ALTERNATIVE_2 macro

Make alternatives replace single JMPs instead of whole memset functions,
thus decreasing the amount of instructions copied during patching time
at boot.

While at it, make it use the REP_GOOD version by default which means
alternatives NOP out the JMP to the other versions, as REP_GOOD is set
by default on the majority of relevant x86 processors.

Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/lib/memset_64.S