diff options
author | dchagin <dchagin@FreeBSD.org> | 2015-05-24 14:39:26 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2015-05-24 14:39:26 +0000 |
commit | ca1941958a1672731cb74d00b3650f97c891f30a (patch) | |
tree | 94115023d7532fdd62f72bd56e6cad2f53e57572 /sys/sys/syscallsubr.h | |
parent | 4d4fc642c1cac69730bd677223d965ae7b270dda (diff) | |
download | FreeBSD-src-ca1941958a1672731cb74d00b3650f97c891f30a.zip FreeBSD-src-ca1941958a1672731cb74d00b3650f97c891f30a.tar.gz |
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.
Differential Revision: https://reviews.freebsd.org/D1032
Reviewed by: trasz
Diffstat (limited to 'sys/sys/syscallsubr.h')
-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 4954e46..debb728 100644 --- a/sys/sys/syscallsubr.h +++ b/sys/sys/syscallsubr.h @@ -171,6 +171,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, |