This patchset moves the entry and exit function to entry-common.h, so non inlined code gets only called when there is some work pending.
Reference: https://lore.kernel.org/all/20231218074520.1998026-1-svens@linux.ibm.com/
Sven Schnelle (3): entry: Move exit to usermode functions to header file entry: Move enter_from_user_mode() to header file entry: Move syscall_enter_from_user_mode() to header file
include/linux/entry-common.h | 95 ++++++++++++++++++++++++++++-- kernel/entry/common.c | 108 ++++------------------------------- 2 files changed, 103 insertions(+), 100 deletions(-)