kernel - Implement degenerate timeout case for select() and poll()
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 12 Nov 2011 19:26:43 +0000 (11:26 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 12 Nov 2011 19:26:43 +0000 (11:26 -0800)
commit4979e190653603f0f22dab90b92a4fab2a6fc5a9
tree410265d46588a5d4a0d3911d52440e79f3daa412
parent3b58baa08e90423aaedb828f9579438d9c51a0cd
kernel - Implement degenerate timeout case for select() and poll()

* When select() or poll() are called with no descriptors and only a
  timeout, call nanosleep1() instead of using tsleep() to generate
  a more precise time delay.

* Significantly improves postgresql's performance.
sys/kern/sys_generic.c