diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2023-04-15 13:22:31 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-04-18 17:05:28 -0700 |
commit | d2c95f9d6802cc518d71d9795f4d9da54fb4e24d (patch) | |
tree | ca5498de4284cf09409c69cbc0c1ddc869d2a747 /tools/objtool | |
parent | adfcf4231b8cbc2d9c1e7bfaa965b907e60639eb (diff) |
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 'tools/objtool')
-rw-r--r-- | tools/objtool/check.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/objtool/check.c b/tools/objtool/check.c index f937be1afe65..4907545d3ce3 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -1284,8 +1284,6 @@ static const char *uaccess_safe_builtin[] = { "copy_mc_fragile_handle_tail", "copy_mc_enhanced_fast_string", "ftrace_likely_update", /* CONFIG_TRACE_BRANCH_PROFILING */ - "clear_user_erms", - "clear_user_rep_good", "clear_user_original", NULL }; |