aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2015-05-24 14:39:26 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2015-05-24 14:39:26 +0000
commit1aa90eca33daf387ac760658abe01000368e4acc (patch)
tree94115023d7532fdd62f72bd56e6cad2f53e57572 /sys/sys
parent09baafb4710eb0c3da528e4f834f2054532a900d (diff)
downloadsrc-1aa90eca33daf387ac760658abe01000368e4acc.tar.gz
src-1aa90eca33daf387ac760658abe01000368e4acc.zip
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
Notes
Notes: svn path=/head/; revision=283374
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/syscallsubr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h
index 4954e465c934..debb7284ae5b 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,