source: mainline/kernel/generic/src/proc/scheduler.c

Revision Log Mode:


Legend:

Added
Modified
Copied or renamed
Diff Rev Age Author Log Message
(edit) @7364e2d1   9 months zarevucky.jiri Don't try to determine internal thread state when requesting stack …
(edit) @41bfc64   9 months zarevucky.jiri Make thread→state weakly atomic so we don't need to hold thread lock
(edit) @3d84734   9 months zarevucky.jiri Make thread→priority weakly atomic to avoid need for locking
(edit) @efed95a3   9 months zarevucky.jiri Make thread→cpu weakly atomic, to avoid need for thread lock
(edit) @286da52   9 months zarevucky.jiri Streamline requeuing threads Split thread_ready() into different …
(edit) @6a0e568   9 months zarevucky.jiri Allow fast-switch to another runnable thread When a thread is …
(edit) @c1eaec4   9 months zarevucky.jiri Shuffle some locks around
(edit) @25939997   9 months zarevucky.jiri Make separate-stack-scheduler a loop with persistent context We can …
(edit) @29029ac0   9 months zarevucky.jiri Call after_thread_ran_arch() before context switch This is only used …
(edit) @ed7e057   9 months zarevucky.jiri Add functions context_create(), context_replace() and context_swap() …
(edit) @4ed7870   9 months zarevucky.jiri Revert part of commit 5861b602
(edit) @a064d4f   9 months zarevucky.jiri Make thread_join() imply thread_put() This makes the function more …
(edit) @5861b60   9 months zarevucky.jiri Lift actions that do not need separate context out of …
(edit) @151c050   9 months zarevucky.jiri Rethink scheduler entry points Changes the way scheduler is entered, …
(edit) @8996582   9 months zarevucky.jiri Move context switch preparation to a new separate function This puts …
(edit) @6e49dab   9 months zarevucky.jiri Extract post-thread cleanup into a separate function
(edit) @23f36a3   9 months zarevucky.jiri Wrap fpu handling code in named functions
(edit) @5663872   9 months zarevucky.jiri Move stuff around for thread sleep Only mark the thread as ready for …
(edit) @4760793   9 months zarevucky.jiri Add CPU_LOCAL alongside CPU and segregate fields that are only used …
(edit) @3b68542   9 months zarevucky.jiri Eliminate an undefined behavior in scheduler debug printout The …
(edit) @ec8ef12   18 months zarevucky.jiri Split find_best_thread() into two functions try_find_thread() … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @117ad5a2   18 months zarevucky.jiri Get thread priority from find_best_thread(), instead of locking thread … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @f3dbe27   18 months zarevucky.jiri Reduce locking further with lazy FPU It turns out we only need a lock … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @06f81c4   18 months zarevucky.jiri Check cpu_t::fpu_owner directly instead of … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @fbaf6ac   18 months zarevucky.jiri Streamline thread load-balancing ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @169815e   18 months zarevucky.jiri Split cpu_t::lock into fpu_lock and tlb_lock For all other purposes, … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @dd218ea   18 months zarevucky.jiri Remove unnecessary thread_t::wired There's already … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @c680333   18 months zarevucky.jiri Move task switch handling into a separate function ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @3118355   19 months zarevucky.jiri Optimize relink_rq() Iterate backwards and only lock each runqueue … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @bea6233   20 months zarevucky.jiri Replace cpu_sleep() with cpu_interruptible_sleep() The new function … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @111b9b9   20 months zarevucky.jiri Reimplement waitq using thread_wait/wakeup This adds a few functions … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @1871118   20 months zarevucky.jiri Make thread_t reference counted This simplifies interaction between … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @daadfa6   20 months zarevucky.jiri Remove unnecessary context field from cpu_t structure ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @0366d09d   20 months zarevucky.jiri Avoid separate allocation for FPU context With _Alignas, we can … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @c030818   20 months zarevucky.jiri Move saved interrupt level from context_t to thread_t Unlike the rest … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @011c79a   20 months zarevucky.jiri Replace CPU→needs_relink with CPU→relink_deadline This removes a … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @aae2869   20 months zarevucky.jiri Replace THREAD→ticks with CPU→preempt_deadline This removes a bit … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @31e15be   3 years 5887334+jxsvoboda kernel: deprecate atomic_t serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @583c2a3   4 years jiri Avoid most cases of direct used of list_t.prev/next in kernel lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @c742954   6 years mlombard scheduler: fix compile error in kcpulb() when KCPULB_VERBOSE is defined. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @ba9a150   6 years zarevucky.jiri Always allocate FPU context ahead of time, even when switching is lazy lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @aae365bc   6 years jakub Remove RCU and CHT support lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @a6e55886   6 years noreply Rename THE/the_t to CURRENT/current_t (#50) Because the word "THE" … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @bab75df6   6 years jiri Let kernel code get printf via the standard stdio header. Clean up … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @174156fd   6 years jakub Disambiguate doxygroup generic* lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @3cfe2b8   6 years jiri.zarevucky Convert atomic_t to atomic_size_t (6): Replace atomic_count_t with size_t lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @036e97c   6 years jiri.zarevucky Convert atomic_t to atomic_size_t (3): Use atomic_load instead of … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @077842c   6 years jiri.zarevucky Convert atomic_t to atomic_size_t (1): remove PRIua macro lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @4621d23   6 years jiri.zarevucky Use compiler builtins for kernel atomics lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @18b6a88   6 years jiri More ccheck fixes, sometimes with manual intervention. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @a35b458   7 years zarevucky.jiri style: Remove trailing whitespace on _all_ lines, including empty … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @b2e121a   7 years martin rename func.{c|h} to halt.{c|h} lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @82d515e9   7 years jakub Fix terminology Objects of slab_cache_t type are caches, not slabs. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @63e27ef   7 years jiri ASSERT → assert lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @1558d85   9 years jakub Remove duplicate includes lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @b1c57a8   10 years jakub Merge from lp:~adam-hraska+lp/helenos/rcu/. Only merge from the … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @b2fa1204   11 years sucha14 Cherrypick usage of kernel logger lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @550523f5   11 years martin fix debugging output lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @0c2d9bb   11 years martin merge mainline changes lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @ef9a2a8   11 years jakub.klama Introduce early MMU support in kernel. At current state, it is … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @feeac0d   11 years jiri Simplify use of list_foreach. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @e1326cf1   12 years jano.vesely scheduler: Check CONFIG_FPU before calling fpu routines lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @935e28c   12 years adam.hraska+hos preemption_disable: Fixed bug that called scheduler() from interrupts. … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @1066041   12 years adam.hraska+hos preemption_disable: Turned functions into macros. Moved THREAD, AS, … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @b23c88e   12 years adam.hraska+hos preemption_disable: Replaced memory barriers with compiler barriers. … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @181a746   12 years adam.hraska+hos rcu: Added preemptible RCU's core API implementation. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @8a64e81e   12 years adam.hraska+hos workq: Add work queues: allow blocking work items, queuing items from … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @6eef3c4   12 years martin cleanup thread_create() and thread_t structure - remove 'flag' … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @55b77d9   13 years jiri Separate list_t typedef from link_t (kernel part). * list_t … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @43ac0cc   13 years jakub More lightweight implementation of delay() in kernel. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @26aafe8   13 years martin cleanup the huge mess related to stacks, their sizes and locations use … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @b4dc35a   13 years jakub It's AS, not VM. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @5b7a107   14 years martin as the 'btrace' command depends on udebug, make it optional on … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @df58e44   14 years martin * add support for printing uspace stack traces from kernel console … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @4e7d3dd   14 years martin cstyle (no change in functionality) lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @7e752b2   14 years martin * correct printf() formatting strings and corresponding arguments * … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @ee42e43   14 years jakub Retire kernel rwlocks. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @d0c82c5   14 years martin perfect CPU cycles accounting, cherry-picked and adopted from … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @2d3ddad   14 years jakub Add more *_locked() assertions. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @da1bafb   14 years martin major code revision - replace spinlocks taken with interrupts … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @481d4751   14 years jakub Fix a race condition between the scheduler and as_destroy(). It was … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @37c9fc8   14 years jakub Cherry pick revision 404 from lp:~ersin/helenos/measure2. This fixes … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @1ba37fa   15 years stanislav.kozina Removed useless cycles sum, using ucycles + kcycles instead. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @62550dce   15 years stanislav.kozina ps -c echoes info about CPU's cpu count is accessible through … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @e257ae3   15 years stanislav.kozina Counting CPU busy and idle clock ticks. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @a2a00e8   15 years stanislav.kozina Accounting separated to kernel and user time. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @228666c   15 years martin introduce atomic_count_t as the explicit type of the internal value in … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @98000fb   15 years martin remove redundant index_t and count_t types (which were always quite … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @f651e80   16 years jirik.svoboda Make newlines in panic messages consistent. Add periods at end of … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @1e9d0e3   16 years jakub cstyle for kinit.c and scheduler.c lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @5b86d10   16 years martin proper printf formatting lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @48d14222   17 years jakub JoinMe → Lingering lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @ea7890e7   17 years jakub More efficient and simpler task termination. Based on the assumption, … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @5c8ba05   17 years jakub Cleanup the waitq_wakeup() interface. Replace numeric constants (i.e. … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @ea63704   17 years jakub Formatting and indentation fixes. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @201abde   18 years martin make thread ID 64 bit (task ID is 64 bit already) cleanup thread syscalls lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @31d8e10   18 years jakub Continue to de-oversynchronize the kernel. - replace as→refcount with … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @4184e76   18 years martin explicit typecast, fix signed/unsigned comparison lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @b3f8fb7   18 years martin huge type system cleanup remove cyclical type dependencies across … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @6f4495f5   18 years jakub Indentaion and formatting changes even Martin will like :-) lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Note: See TracRevisionLog for help on using the revision log.