kernel - Implement ppoll system call with precise microseconds timeout.
authorImre Vadasz <imre@vdsz.com>
Sat, 12 Dec 2015 20:26:09 +0000 (21:26 +0100)
committerImre Vadász <imre@vdsz.com>
Sun, 19 Jun 2016 07:49:47 +0000 (09:49 +0200)
commit6d2444c4cfa09766909b503f09481b11af9d31ac
treeb43a2314d0d34758e2d828ed161ce0f39e8d6e7f
parentcf1b3fafd1f08bd3a18fc9af3c431c48f600eb32
kernel - Implement ppoll system call with precise microseconds timeout.

* Implement a maximum timeout of 2000s, because systimer(9) just accepts an
  int timeout in microseconds.

* Add kern.kv_sleep_threshold sysctl variable for tuning the threshold for
  the ppoll sleep duration (in nanoseconds), below which we will
  busy-loop with DELAY instead of using tsleep for waiting.
20 files changed:
lib/libc/include/namespace.h
lib/libc/include/un-namespace.h
lib/libc/sys/Makefile.inc
lib/libc/sys/Symbol.map
lib/libc/sys/poll.2
lib/libthread_xu/pthread.map
lib/libthread_xu/thread/thr_private.h
lib/libthread_xu/thread/thr_syscalls.c
sys/emulation/linux/linux_epoll.c
sys/kern/init_sysent.c
sys/kern/kern_event.c
sys/kern/sys_generic.c
sys/kern/syscalls.c
sys/kern/syscalls.master
sys/sys/event.h
sys/sys/poll.h
sys/sys/syscall.h
sys/sys/syscall.mk
sys/sys/sysproto.h
sys/sys/sysunion.h