diff options
| author | 2026-09-29 12:47:44 +0530 | |
|---|---|---|
| committer | 2026-10-12 09:31:44 +0530 | |
| commit | 66236558dfac63d9bea5b0b6a66a4d717529c118 (patch) | |
| tree | 0860d6a73b31a631052aa58a1006c7ea9c6c7880 /scripts/Makefile.thinlto | |
| parent | powerpc/kasan: fix r2 corruption in mem*() on GENERIC_ENTRY with old compilers (diff) | |
powerpc/syscall: Avoid atomic test_and_clear_thread_flag on fast path
In system_call_exception(), test_and_clear_thread_flag(TIF_SYSCALL_RET)
performs an atomic bit test-and-clear operation on every system call entry.
This introduces an unnecessary performance regression on the syscall fast
path.
Combine the TIF_SYSCALL_RET check with the unlikely error condition from
syscall_enter_from_user_mode_randomize_stack() using non-atomic
test_thread_flag(). If the flag is set or entry failed, only then clear the
flag via clear_thread_flag() and return the error value.
Signed-off-by: Mukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260929071744.2965058-1-mkchauras@gmail.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
