summaryrefslogtreecommitdiff
path: root/sys/kern/kern_threads.c
Commit message (Collapse)AuthorAgeFilesLines
* Correct sleep priority.John Dyson1998-06-021-2/+2
| | | | Notes: svn path=/head/; revision=36582
* Eradicate the variable "time" from the kernel, using various measures.Poul-Henning Kamp1998-03-301-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "time" wasn't a atomic variable, so splfoo() protection were needed around any access to it, unless you just wanted the seconds part. Most uses of time.tv_sec now uses the new variable time_second instead. gettime() changed to getmicrotime(0. Remove a couple of unneeded splfoo() protections, the new getmicrotime() is atomic, (until Bruce sets a breakpoint in it). A couple of places needed random data, so use read_random() instead of mucking about with time which isn't random. Add a new nfs_curusec() function. Mark a couple of bogosities involving the now disappeard time variable. Update ffs_update() to avoid the weird "== &time" checks, by fixing the one remaining call that passwd &time as args. Change profiling in ncr.c to use ticks instead of time. Resolution is the same. Add new function "tvtohz()" to avoid the bogus "splfoo(), add time, call hzto() which subtracts time" sequences. Reviewed by: bde Notes: svn path=/head/; revision=34961
* Removed a stale comment and staler code.Bruce Evans1998-02-251-8/+1
| | | | Notes: svn path=/head/; revision=33827
* Remove a bunch of variables which were unused both in GENERIC and LINT.Poul-Henning Kamp1997-11-071-2/+2
| | | | | | | Found by: -Wunused Notes: svn path=/head/; revision=31016
* Move the "retval" (3rd) parameter from all syscall functions and putPoul-Henning Kamp1997-11-061-10/+10
| | | | | | | | | | | | | | | it in struct proc instead. This fixes a boatload of compiler warning, and removes a lot of cruft from the sources. I have not removed the /*ARGSUSED*/, they will require some looking at. libkvm, ps and other userland struct proc frobbing programs will need recompiled. Notes: svn path=/head/; revision=30994
* Removed unused #includes.Bruce Evans1997-09-021-13/+1
| | | | Notes: svn path=/head/; revision=29041
* This is an upgrade so that the kernel supports the AIO calls fromJohn Dyson1997-07-061-18/+26
| | | | | | | | | | | | | | POSIX.4. Additionally, there is some initial code that supports LIO. This code supports AIO/LIO for all types of file descriptors, with few if any restrictions. There will be a followup very soon that will support significantly more efficient operation for VCHR type files (raw.) This code is also dependent on some kernel features that don't work under SMP yet. After I commit the changes to the kernel to support proper address space sharing on SMP, this code will also work under SMP. Notes: svn path=/head/; revision=27221
* Add initial AIO/LIO kernel thread support files. This is preliminary, andJohn Dyson1997-06-161-0/+168
further features will be added. Notes: svn path=/head/; revision=26670