[all-commits] [llvm/llvm-project] 203aff: [LIBC] Implement `sched_yield()`
goldsteinn via All-commits
all-commits at lists.llvm.org
Wed Apr 12 17:05:05 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 203aff2df368f63532c0db4c5ab2879438654814
https://github.com/llvm/llvm-project/commit/203aff2df368f63532c0db4c5ab2879438654814
Author: Noah Goldstein <goldstein.w.n at gmail.com>
Date: 2023-04-12 (Wed, 12 Apr 2023)
Changed paths:
M libc/config/linux/aarch64/entrypoints.txt
M libc/config/linux/riscv64/entrypoints.txt
M libc/config/linux/x86_64/entrypoints.txt
M libc/spec/gnu_ext.td
M libc/spec/posix.td
M libc/src/sched/CMakeLists.txt
M libc/src/sched/linux/CMakeLists.txt
A libc/src/sched/linux/sched_yield.cpp
A libc/src/sched/sched_yield.h
M libc/test/src/sched/CMakeLists.txt
A libc/test/src/sched/yield_test.cpp
Log Message:
-----------
[LIBC] Implement `sched_yield()`
Implements: https://linux.die.net/man/2/sched_yield
Possibly we don't need the return value check / errno as according to
both the manpage (and current linux source) `sched_yield` cannot fail.
Reviewed By: sivachandra, michaelrj
Differential Revision: https://reviews.llvm.org/D147985
Commit: ee361a3fabb1832ef080fceea07a2451c399c6e3
https://github.com/llvm/llvm-project/commit/ee361a3fabb1832ef080fceea07a2451c399c6e3
Author: Noah Goldstein <goldstein.w.n at gmail.com>
Date: 2023-04-12 (Wed, 12 Apr 2023)
Changed paths:
M libc/src/sys/random/linux/getrandom.cpp
M libc/test/src/sys/random/linux/getrandom_test.cpp
Log Message:
-----------
[LIBC] Fix `getrandom` success return value
`getrandom` should return the number of bytes successfully set on
success, not `0`.
Reviewed By: sivachandra, michaelrj
Differential Revision: https://reviews.llvm.org/D147981
Commit: 9638da200e00bd069e6dd63604e14cbafede9324
https://github.com/llvm/llvm-project/commit/9638da200e00bd069e6dd63604e14cbafede9324
Author: Noah Goldstein <goldstein.w.n at gmail.com>
Date: 2023-04-12 (Wed, 12 Apr 2023)
Changed paths:
M libc/test/src/sched/cpu_count_test.cpp
Log Message:
-----------
[LIBC] Fix comments / name of __sched_cpu_count tests
Test was incorrectly named/commented after the sched_{set|get}affinity
functions.
Reviewed By: michaelrj
Differential Revision: https://reviews.llvm.org/D148044
Compare: https://github.com/llvm/llvm-project/compare/2c12e9b7b2df...9638da200e00
More information about the All-commits
mailing list