summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sched.c
AgeCommit message (Expand)Author
2019-10-15Reduce the number of places where `p_priority' and `p_stat' are set.Martin Pieuchot
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
2019-03-26Make sure that each ci has its spc_deferred queue initialized.Visa Hankala
2019-02-26Introduce safe memory reclamation, a mechanism for reclaiming sharedVisa Hankala
2018-11-17Add new KERN_CPUSTATS sysctl(2) so we can identify offline CPUs.cheloha
2018-10-05Revert KERN_CPTIME2 ENODEV changes in kernel and userspace.cheloha
2018-09-26KERN_CPTIME2: set ENODEV if the CPU is offline.cheloha
2018-07-12Add hw.ncpuonline to count the number of online CPUs.cheloha
2018-07-07Release the kernel lock fully on thread exit. This prevents a lockingVisa Hankala
2018-06-30Don't steal processes from other CPUs if we're not scheduling processes onMark Kettenis
2018-06-19SMT (Simultanious Multi Threading) implementations typically shareMark Kettenis
2017-12-14make sched_barrier use cond_wait/cond_signal.David Gwynne
2017-11-28Raise the IPL of the sbar taskq to avoid lock order issuesVisa Hankala
2017-02-12Split up fork1():Philip Guenther
2017-01-21p_comm is the process's command and isn't per thread, so move it fromPhilip Guenther
2016-06-03Allow pegged process on secondary CPUs to continue to be scheduled whenMark Kettenis
2016-03-17Replace curcpu_is_idle() by cpu_is_idle() and use it instead of rollingMartin Pieuchot
2015-12-23One "sbar" taskq is enough.Mark Kettenis
2015-12-17Make the cost of moving a process to the primary cpu a bit higher. This isMark Kettenis
2015-10-16Make sched_barrier() use its own task queue to avoid deadlocks.Martin Pieuchot
2015-09-20Short circuit if we're running on the CPU that we want to sync with. FixesMark Kettenis
2015-09-13Introduce sched_barrier(9), an interface that acts as a scheduler barrier inMark Kettenis
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
2014-09-24Keep under #ifdef MULTIPROCESSOR the code that deals with SPCF_SHOULDHALTMartin Pieuchot
2014-07-26If we're stopping a secondary cpu, don't let sched_choosecpu() short-circuitMark Kettenis
2014-07-13Fix sched_stop_secondary_cpus() to properly drain CPUsMatthew Dempsky
2014-05-04Add PS_SYSTEM, the process-level mirror of the thread-level P_SYSTEM,Philip Guenther
2014-02-12Eliminate the exit sig handling, which was only invokable via thePhilip Guenther
2013-06-06Prevent idle thread from being stolen on startup.Christiano F. Haesbaert
2013-06-03Convert some internal APIs to use timespecs instead of timevalsPhilip Guenther
2013-04-19sprinkle ifdef MP to disable cpu migration code when not needed.Ted Unangst
2012-07-10Make sure that we don't schedule processes on CPUs that we havetaken out ofMark Kettenis
2012-03-23Make rusage totals, itimers, and profile settings per-process insteadPhilip Guenthe
2012-03-10Account for sched_noidle and document the scheduler variables.Christiano F. Haesbaert
2011-10-12Remove all MD diagnostics in cpu_switchto(), and move them to MI code ifMiod Vallat
2011-07-06Clean up after P_BIGLOCK removal.Artur Grabowski
2010-05-28Delete a fallback definition for CPU_INFO_UNIT that's both unnecessaryPhilip Guenthe
2010-05-25Actively remove processes from the runqueues of a CPU when we stop it.Mark Kettenis
2010-05-14Make sure we initialize sched_lock before we try to use it.Mark Kettenis
2010-04-23Merge the only relevant (for now) parts of simplelock.h into lock.hTheo de Raadt
2010-04-06Implement functions to take away the secondary CPUs from the scheduler andMark Kettenis
2010-01-09Add code to stop scheduling processes on CPUs, effectively halting that CPU.Mark Kettenis
2009-11-29Backout previous commit. There is a possible race which makes it possibleMark Kettenis
2009-11-25Add a mechanism to stop the scheduler from scheduling processes on aMark Kettenis
2009-10-05Don't drop the big lock at the end of exit1(), but move it into the middle ofTheo de Raadt
2009-04-22When starting up idle, explicitly set p_cpu and the peg flag for theArtur Grabowski
2009-04-20Make pegging a proc work when there are idle cpus that are looking forArtur Grabowski
2009-04-14Some tweaks to the cpu affinity code.Artur Grabowski
2009-04-03sched_peg_curproc_to_cpu() - function to force a proc to stay on a cpuArtur Grabowski