diff options
author | dchagin <dchagin@FreeBSD.org> | 2016-01-09 14:40:38 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2016-01-09 14:40:38 +0000 |
commit | fd9d33be2a51f313e557a77d61add75b4a80bedc (patch) | |
tree | 0b16992f86d0d5aae92d3865a01553fe6fe2609c /sys/sys | |
parent | a07a85c065f084d084b8a1a0d5a42e79c99962e6 (diff) | |
download | FreeBSD-src-fd9d33be2a51f313e557a77d61add75b4a80bedc.zip FreeBSD-src-fd9d33be2a51f313e557a77d61add75b4a80bedc.tar.gz |
MFC r283374:
In preparation for switching linuxulator to the use the native 1:1
threads refactor kern_sched_rr_get_interval() and sys_sched_rr_get_interval().
Add a kern_sched_rr_get_interval() counterpart which takes a targettd
parameter to allow specify target thread directly by callee (new Linuxulator).
Linuxulator temporarily uses first thread in proc.
Move linux_sched_rr_get_interval() to the MI part.
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/syscallsubr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h index bdb2500..94ff523 100644 --- a/sys/sys/syscallsubr.h +++ b/sys/sys/syscallsubr.h @@ -197,6 +197,8 @@ int kern_rmdirat(struct thread *td, int fd, char *path, enum uio_seg pathseg); int kern_sched_rr_get_interval(struct thread *td, pid_t pid, struct timespec *ts); +int kern_sched_rr_get_interval_td(struct thread *td, struct thread *targettd, + struct timespec *ts); int kern_semctl(struct thread *td, int semid, int semnum, int cmd, union semun *arg, register_t *rval); int kern_select(struct thread *td, int nd, fd_set *fd_in, fd_set *fd_ou, |