]> git.baikalelectronics.ru Git - kernel.git/commit
x86, alternative, doc: Add comment for applying alternatives order
authorFenghua Yu <fenghua.yu@intel.com>
Tue, 17 May 2011 22:29:12 +0000 (15:29 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 17 May 2011 22:40:25 +0000 (15:40 -0700)
commit2f49d07f619627ed2d2b63373539b5480c06d6a9
treec3591cee18b04a1506e048aa51698c7af7aa9fc2
parente328f674a5a8e75b9aba549355677fc7b294e5d3
x86, alternative, doc: Add comment for applying alternatives order

Some string operation functions may be patched twice, e.g. on enhanced REP MOVSB
/STOSB processors, memcpy is patched first by fast string alternative function,
then it is patched by enhanced REP MOVSB/STOSB alternative function.

Add comment for applying alternatives order to warn people who may change the
applying alternatives order for any reason.

[ Documentation-only patch ]

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Link: http://lkml.kernel.org/r/1305671358-14478-4-git-send-email-fenghua.yu@intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/alternative.c