sched/pthread: move pthread mutex from syscall to user-space

Move pthread mutex operations from kernel-space syscall
interface to user-space implementations
to reduce syscall overhead. Relocate mutex holder list
tracking from task control block (tcb) to
thread local storage (tls) to improve memory layout and
cache efficiency. Add helper macros for
conditional mutex implementations and update syscall
interface accordingly.

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5
2025-06-08 10:36:02 +08:00
committed by Alan C. Assis
parent 5e117fda60
commit 5051721298
29 changed files with 219 additions and 188 deletions
-1
View File
@@ -97,7 +97,6 @@ class Tcb(Value):
sigpendactionq: Value
sigpostedq: Value
sigunbinfo: Value
mhead: Value
ticks: Value
run_start: Value
run_max: Value