summaryrefslogtreecommitdiff
path: root/sys/kern/kern_time.c
AgeCommit message (Expand)Author
2023-09-10clockintr: support an arbitrary callback function argumentScott Soule Cheloha
2023-08-29Remove p_rtime from struct proc and replace it by passing the timespecClaudio Jeker
2023-08-05hardclock(9): move setitimer(2) code into itimer_update()Scott Soule Cheloha
2023-02-15Use the nowake channel for sys_nanosleep() instead of handrolling the same.Claudio Jeker
2023-02-04kernel: stathz is always non-zero after cpu_initclocks()Scott Soule Cheloha
2023-01-02Add tfind_user(), for getting a proc* given a user-space TID andPhilip Guenther
2022-12-31timeout: rename "timeout_at_ts" to "timeout_abs_ts"Scott Soule Cheloha
2022-12-05zap a pile of dangling tabsTheo de Raadt
2022-10-12Extend struct todr_chip_handle with a todr_quality member. This allows usMark Kettenis
2022-08-14remove unneeded includes in sys/kernJonathan Gray
2022-05-05Using mutex initializer for static variable does not compile withAlexander Bluhm
2022-05-04Introduce mutex for ratecheck(9) and ppsratecheck(9). A globalAlexander Bluhm
2021-06-18setitimer(2): increase timer limit to UINT_MAX secondscheloha
2021-06-11setitimer(2): don't round up it_valuecheloha
2021-05-31Redefine ADJFREQ_MIN to avoid undefined behaviour (when not using -fwrapv)Visa Hankala
2020-12-23nanosleep(2): shorten wmesg from "nanosleep" to "nanoslp"cheloha
2020-11-10setitimer(2): ITIMER_REAL: protect state with per-process mutex ps_mtxcheloha
2020-10-25setitimer(2): ITIMER_REAL: use kclock timeoutscheloha
2020-10-15_exit(2), execve(2): tweak per-process interval timer cancellationcheloha
2020-10-15_exit(2), execve(2): cancel per-process interval timers safelycheloha
2020-10-13setitimer(2): zero itv.it_interval if itv.it_value is zerocheloha
2020-10-13setitimer(2): realitexpire(): call getnanouptime(9) oncecheloha
2020-10-07sys_getitimer(), sys_setitimer(): style(9), misc. cleanupcheloha
2020-10-07getitimer(2), setitimer(2): ITIMER_REAL: call getnanouptime(9) oncecheloha
2020-10-07getitimer(2), setitimer(2): merge critical sectionscheloha
2020-10-02expose timeval/timespec from system calls into ktrace, before determiningTheo de Raadt
2020-08-12getitimer(2): delay TIMESPEC_TO_TIMEVAL(9) conversion until copyout(9)cheloha
2020-08-12setitimer(2): ITIMER_REAL: don't call timeout_del(9) before timeout_add(9)cheloha
2020-08-11setitimer(2): write new timer value in one placecheloha
2020-08-11setitimer(2): consolidate copyin(9), input validation, input conversioncheloha
2020-08-11getitimer(2): don't enter itimer_mtx to read ITIMER_REAL itimerspeccheloha
2020-08-09hardclock(9): fix race with setitimer(2) for ITIMER_VIRTUAL, ITIMER_PROFcheloha
2020-08-08adjtime(2): simplify input validation for new adjustmentcheloha
2020-07-15settimeofday(2): securelevel 2: prevent root from freezing the UTC clockcheloha
2020-07-09adjfreq(2): limit adjustment to [-500000, +500000] ppmcheloha
2020-06-22inittodr(9): introduce dedicated flag to enable writes from resettodr(9)cheloha
2020-05-20clock_gettime(2): use nanoruntime(9) to get value for CLOCK_UPTIMEcheloha
2020-05-17Add function for attaching RTC drivers, to reduce direct useVisa Hankala
2020-05-16Make inittodr() and resettodr() MI.Mark Kettenis
2020-03-20nanosleep(2): tsleep(9) -> tsleep_nsec(9)cheloha
2019-11-07adjfreq(2): fix atomic swapcheloha
2019-10-26clock_getres(2): actually return the resolution of the given clockcheloha
2019-09-04gettimeofday, settimeofday(2): limit timezone supportcheloha
2019-08-03R.I.P. itimerround(); ok mpi@cheloha
2019-08-02per-process itimers: itimerval -> itimerspeccheloha
2019-07-25itimerdecr(): simplify logic with timer*(9) macros; ok millert@cheloha
2019-07-02R.I.P. timespecfix(); ok visa@ mpi@cheloha
2019-06-03Switch from bintime_add() et al. to bintimeadd(9).cheloha
2019-06-01Revert to using the SCHED_LOCK() to protect time accounting.Martin Pieuchot
2019-05-31Use a per-process mutex to protect time accounting instead of SCHED_LOCK().Martin Pieuchot