summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2016-01-09 14:40:38 +0000
committerdchagin <dchagin@FreeBSD.org>2016-01-09 14:40:38 +0000
commitfd9d33be2a51f313e557a77d61add75b4a80bedc (patch)
tree0b16992f86d0d5aae92d3865a01553fe6fe2609c /sys/amd64
parenta07a85c065f084d084b8a1a0d5a42e79c99962e6 (diff)
downloadFreeBSD-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/amd64')
-rw-r--r--sys/amd64/linux32/linux32_machdep.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/sys/amd64/linux32/linux32_machdep.c b/sys/amd64/linux32/linux32_machdep.c
index 87a24fb..3906e96 100644
--- a/sys/amd64/linux32/linux32_machdep.c
+++ b/sys/amd64/linux32/linux32_machdep.c
@@ -924,22 +924,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)
{
OpenPOWER on IntegriCloud