diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2023-04-15 23:22:31 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-04-19 03:05:28 +0300 |
commit | d2c95f9d6802cc518d71d9795f4d9da54fb4e24d (patch) | |
tree | ca5498de4284cf09409c69cbc0c1ddc869d2a747 /arch/x86/lib/usercopy_64.c | |
parent | adfcf4231b8cbc2d9c1e7bfaa965b907e60639eb (diff) | |
download | linux-d2c95f9d6802cc518d71d9795f4d9da54fb4e24d.tar.xz |
x86: don't use REP_GOOD or ERMS for user memory clearing
The modern target to use is FSRS (Fast Short REP STOS), and the other
cases should only be used for bigger areas (ie mainly things like page
clearing).
Note! This changes the conditional for the inlining from FSRM ("fast
short rep movs") to FSRS ("fast short rep stos").
We'll have a separate fixup for AMD microarchitectures that have a good
'rep stosb' yet do not set the new Intel-specific FSRS bit (because FSRM
was there first).
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/lib/usercopy_64.c')
0 files changed, 0 insertions, 0 deletions