summaryrefslogtreecommitdiff
path: root/sys/kern/kern_synch.c
AgeCommit message (Expand)Author
2020-04-06Fix single thread behaviour in sleep_setup_signal(). If a thread needs toClaudio Jeker
2020-03-31Move sleep_finish_all() down to where sleep_finish() and all otherClaudio Jeker
2020-03-26Revert Rev 1.164. Setting sls_sig to 0 uncovered a bunch of issues when itClaudio Jeker
2020-03-23Prevent tsleep(9) with PCATCH from returning immediately without errorVisa Hankala
2020-03-20__thrsleep(2): ensure timeout is set when calling tsleep_nsec(9)cheloha
2020-03-20__thrsleep(2): fix absolute timeout checkcheloha
2020-03-13Initialize sls_sig to 0 and not 1. sls_sig stores the signal number of aClaudio Jeker
2020-03-02msleep() and rwsleep() allow to release the lock when going toAlexander Bluhm
2020-01-30Split `p_priority' into `p_runpri' and `p_slppri'.Martin Pieuchot
2020-01-24*sleep_nsec(9): log process name and pid when nsecs == 0cheloha
2020-01-21Import dt(4) a driver and framework for Dynamic Profiling.Martin Pieuchot
2020-01-21Make __thrsleep(2) and __thrwakeup(2) MP-safeVisa Hankala
2020-01-16Introduce wakeup_proc() a function to un-SSTOP/SSLEEP a thread.Martin Pieuchot
2020-01-14Introduce TIMESPEC_TO_NSEC() and use it to convert userland facingMartin Pieuchot
2020-01-12*sleep_nsec(9): sleep *at least* the given number of nanosecondscheloha
2019-11-30Move kernel locking inside the sleep machinery. This enables callingVisa Hankala
2019-11-12Check sleep timeout state only if the sleep has a timeout. Otherwise,Visa Hankala
2019-10-15Reduce the number of places where `p_priority' and `p_stat' are set.Martin Pieuchot
2019-10-01*sleep_nsec(9): add missing newlines to DIAGNOSTIC logscheloha
2019-07-10Stop sleeping at PUSER.Martin Pieuchot
2019-07-03Add tsleep_nsec(9), msleep_nsec(9), and rwsleep_nsec(9).cheloha
2019-06-18Ensure that timeout p_sleep_to is not left running when finishing sleep.Visa Hankala
2019-04-23Remove file name and line number output from witness(4)Visa Hankala
2019-01-23Sprinkle a pinch of timerisvalid/timespecisvalid over the rest of sys/kerncheloha
2018-05-31Add sleep_finish_all(), which provides the common combo of sleep_finish(),Philip Guenther
2018-05-28rwsleep: generalize to support both read- and write-locks.cheloha
2018-04-24Validate timespec and return ECANCELED when interrupted with SA_RESTART.Paul Irofti
2017-12-14add code to provide simple wait condition handling.David Gwynne
2017-12-04Use _kernel_lock_held() instead of __mp_lock_held(&kernel_lock).Martin Pieuchot
2017-05-18Do not panic if we find ourself on the sleep queue while being SONPROC.Martin Pieuchot
2017-04-20Hook up mutex(9) to witness(4).Visa Hankala
2017-04-20Hook up rwlock(9) to witness(4).Visa Hankala
2017-01-31Remove the inifioctl hack, checking for an unheld NET_LOCK() inMartin Pieuchot
2017-01-25Introduce a hack to remove false-positives when looking for memoryMartin Pieuchot
2017-01-21p_comm is the process's command and isn't per thread, so move it fromPhilip Guenther
2016-09-13Introduce rwsleep(9), an equivalent to msleep(9) but for code protectedMartin Pieuchot
2016-09-03Remove ticket lock support from thrsleep. It's unused.Michal Mazurek
2016-07-06fix several places where calculating ticks could overflow.Ted Unangst
2016-07-04switch calculuated thrsleep timeout to unsigned to prevent overflowTed Unangst
2016-03-29add back $OpenBSD$Jonathan Gray
2016-03-28Make sure that a thread that calls sched_yield(2) ends up on the run queueMark Kettenis
2016-03-09Correct some comments and definitions, from Michal Mazurek.Martin Pieuchot
2016-02-01add a DIAGNOSTIC for refcnt_take overflow.David Gwynne
2016-01-15KASSERT on refcnt underflow.David Gwynne
2015-11-23Do not include <sys/atomic.h> inside <sys/refcnt.h>.Martin Pieuchot
2015-09-28satisfy RAMDISK by placing cold == 2 case inside #ifdef DDBTheo de Raadt
2015-09-28In low-level suspend routines, set cold=2. In tsleep(), use this toTheo de Raadt
2015-09-11introduce a wrapper around reference counts called refcnt.David Gwynne
2015-09-07Delete ktracing of context switches: it's unused, and not particularly useful,Philip Guenther
2015-05-12Drop and reacquire the kernel lock in the vfs_shutdown and "cold"Mike Belopuhov