diff options
| author | Fenghua Yu <[email protected]> | 2012-05-25 01:19:45 +0000 |
|---|---|---|
| committer | H. Peter Anvin <[email protected]> | 2012-06-29 22:33:34 +0000 |
| commit | 954e482bde20b0e208fd4d34ef26e10afd194600 (patch) | |
| tree | a98702fdde1d47b31851cee7b81849dec8b91f09 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | x86/alternatives: Use atomic_xchg() instead atomic_dec_and_test() for stop_ma... (diff) | |
| download | kernel-954e482bde20b0e208fd4d34ef26e10afd194600.tar.gz kernel-954e482bde20b0e208fd4d34ef26e10afd194600.zip | |
x86/copy_user_generic: Optimize copy_user_generic with CPU erms feature
According to Intel 64 and IA-32 SDM and Optimization Reference Manual, beginning
with Ivybridge, REG string operation using MOVSB and STOSB can provide both
flexible and high-performance REG string operations in cases like memory copy.
Enhancement availability is indicated by CPUID.7.0.EBX[9] (Enhanced REP MOVSB/
STOSB).
If CPU erms feature is detected, patch copy_user_generic with enhanced fast
string version of copy_user_generic.
A few new macros are defined to reduce duplicate code in ALTERNATIVE and
ALTERNATIVE_2.
Signed-off-by: Fenghua Yu <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: H. Peter Anvin <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
