summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-cns3xxx
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2022-01-23 20:18:33 +0100
committerArd Biesheuvel <ardb@kernel.org>2022-02-09 09:12:32 +0100
commitd11967870815b5ab89843980e35aab616c97c463 (patch)
tree9056da31edd06e1ed96221417fdb49fb16a0a0ea /arch/arm/mach-cns3xxx
parentdc438db5828fd6a379648ab8735ee73a8e40865a (diff)
downloadlinux-d11967870815b5ab89843980e35aab616c97c463.tar.bz2
ARM: ftrace: avoid redundant loads or clobbering IP
Tweak the ftrace return paths to avoid redundant loads of SP, as well as unnecessary clobbering of IP. This also fixes the inconsistency of using MOV to perform a function return, which is sub-optimal on recent micro-architectures but more importantly, does not perform an interworking return, unlike compiler generated function returns in Thumb2 builds. Let's fix this by popping PC from the stack like most ordinary code does. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'arch/arm/mach-cns3xxx')
0 files changed, 0 insertions, 0 deletions