X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2F__lock.c;h=2e00636f08e8ff80aea0eabddee4972c01e8b9fe;hb=4c4e22d781d75a461097cccc2ecac5adbafb1a59;hp=21cb71a84cf9b7c94789319c880aee2b30710d07;hpb=685e40bb09f5f24a2af54ea09c97328808f76990;p=musl diff --git a/src/thread/__lock.c b/src/thread/__lock.c index 21cb71a8..2e00636f 100644 --- a/src/thread/__lock.c +++ b/src/thread/__lock.c @@ -7,5 +7,5 @@ void __lock(volatile int *l) * assignment to optimize non-pathological code with no contention. */ while (a_xchg(l, 1)) if (spins) spins--, a_spin(); - else __syscall(__NR_sched_yield); + else __syscall(SYS_sched_yield); }