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/amd64/linux32 | |
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/amd64/linux32')
-rw-r--r-- | sys/amd64/linux32/linux32_machdep.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/sys/amd64/linux32/linux32_machdep.c b/sys/amd64/linux32/linux32_machdep.c index 155e90b..339c898 100644 --- a/sys/amd64/linux32/linux32_machdep.c +++ b/sys/amd64/linux32/linux32_machdep.c @@ -925,22 +925,6 @@ linux_getrusage(struct thread *td, struct linux_getrusage_args *uap) } int -linux_sched_rr_get_interval(struct thread *td, - struct linux_sched_rr_get_interval_args *uap) -{ - struct timespec ts; - struct l_timespec ts32; - int error; - - error = kern_sched_rr_get_interval(td, uap->pid, &ts); - if (error != 0) - return (error); - ts32.tv_sec = ts.tv_sec; - ts32.tv_nsec = ts.tv_nsec; - return (copyout(&ts32, uap->interval, sizeof(ts32))); -} - -int linux_set_thread_area(struct thread *td, struct linux_set_thread_area_args *args) { |