summaryrefslogtreecommitdiff
path: root/kernel/locking/rtmutex_api.c
diff options
context:
space:
mode:
authorLi Qiang <liqiang01@kylinos.cn>2025-09-19 11:33:27 +0800
committerCatalin Marinas <catalin.marinas@arm.com>2025-11-11 19:49:19 +0000
commitdf717b9564c8370e9198c9cd5d62e277a18563fb (patch)
tree1a4be72a179f811bb2aa30c1b189cd0ddf3d04e1 /kernel/locking/rtmutex_api.c
parent420cab0155033c14c5cb308d5078f93e3e8bf9b3 (diff)
arm64: add unlikely hint to MTE async fault check in el0_svc_common
Add unlikely() hint to the _TIF_MTE_ASYNC_FAULT flag check in el0_svc_common() since asynchronous MTE faults are expected to be rare occurrences during normal system call execution. This optimization helps the compiler to improve instruction caching and branch prediction for the common case where no asynchronous MTE faults are pending, while maintaining correct behavior for the exceptional case where such faults need to be handled prior to system call execution. Signed-off-by: Li Qiang <liqiang01@kylinos.cn> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'kernel/locking/rtmutex_api.c')
0 files changed, 0 insertions, 0 deletions