|
|
@dfa4be62
|
19 months |
zarevucky.jiri |
Thread lock is no longer necessary
|
|
|
@a3d87b9
|
19 months |
zarevucky.jiri |
We don't need to check thread state to wait for thread exit
|
|
|
@9fbdeca
|
19 months |
zarevucky.jiri |
The initialization value for priority is actually irrelevant
|
|
|
@11909ce3
|
19 months |
zarevucky.jiri |
Make thread cycle statistics atomic
|
|
|
@33e15a0
|
19 months |
zarevucky.jiri |
Make thread→btrace weakly atomic, to avoid need for thread lock
|
|
|
@7364e2d1
|
19 months |
zarevucky.jiri |
Don't try to determine internal thread state when requesting stack …
|
|
|
@41bfc64
|
19 months |
zarevucky.jiri |
Make thread→state weakly atomic so we don't need to hold thread lock
|
|
|
@3d84734
|
19 months |
zarevucky.jiri |
Make thread→priority weakly atomic to avoid need for locking
|
|
|
@efed95a3
|
19 months |
zarevucky.jiri |
Make thread→cpu weakly atomic, to avoid need for thread lock
|
|
|
@286da52
|
19 months |
zarevucky.jiri |
Streamline requeuing threads
Split thread_ready() into different …
|
|
|
@6a0e568
|
19 months |
zarevucky.jiri |
Allow fast-switch to another runnable thread
When a thread is …
|
|
|
@c1eaec4
|
19 months |
zarevucky.jiri |
Shuffle some locks around
|
|
|
@25939997
|
19 months |
zarevucky.jiri |
Make separate-stack-scheduler a loop with persistent context
We can …
|
|
|
@ed7e057
|
19 months |
zarevucky.jiri |
Add functions context_create(), context_replace() and context_swap()
…
|
|
|
@e82879c
|
19 months |
zarevucky.jiri |
Remove unnecessary function
|
|
|
@0f4f1b2
|
19 months |
zarevucky.jiri |
Add (and use) functions thread_start() and thread_detach()
Mostly …
|
|
|
@a064d4f
|
19 months |
zarevucky.jiri |
Make thread_join() imply thread_put()
This makes the function more …
|
|
|
@151c050
|
19 months |
zarevucky.jiri |
Rethink scheduler entry points
Changes the way scheduler is entered, …
|
|
|
@8996582
|
19 months |
zarevucky.jiri |
Move context switch preparation to a new separate function
This puts …
|
|
|
@5663872
|
19 months |
zarevucky.jiri |
Move stuff around for thread sleep
Only mark the thread as ready for …
|
|
|
@b169619
|
21 months |
zarevucky.jiri |
Deduplicate mem functions
There are a number of functions which are …
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@f3dbe27
|
2 years |
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
|
|
|
@06f81c4
|
2 years |
zarevucky.jiri |
Check cpu_t::fpu_owner directly instead of …
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@fbaf6ac
|
2 years |
zarevucky.jiri |
Streamline thread load-balancing
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@169815e
|
2 years |
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
|
|
|
@dd218ea
|
2 years |
zarevucky.jiri |
Remove unnecessary thread_t::wired
There's already …
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@c7326f21
|
2 years |
zarevucky.jiri |
Move some oddly placed accounting code
Thread ucycles and kcycles …
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@111b9b9
|
2 years |
zarevucky.jiri |
Reimplement waitq using thread_wait/wakeup
This adds a few functions …
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@11d2c983
|
2 years |
zarevucky.jiri |
Reorganize locking in thread_destroy()
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@1871118
|
2 years |
zarevucky.jiri |
Make thread_t reference counted
This simplifies interaction between …
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@83789ea2
|
2 years |
zarevucky.jiri |
Simplify timeout handling
Since timeout_unregister() now waits for …
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@78acbc72
|
2 years |
zarevucky.jiri |
Remove unused thread_interrupted(), make thread_interrupt() useful
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@0366d09d
|
2 years |
zarevucky.jiri |
Avoid separate allocation for FPU context
With _Alignas, we can …
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@5110d0a
|
2 years |
zarevucky.jiri |
Turn a bunch of macros into regular functions
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@c030818
|
2 years |
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
|
|
|
@c1b073b7
|
2 years |
zarevucky.jiri |
Remove some unnecessary #ifdefs
%p does not care about specified …
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@661a5ac
|
2 years |
zarevucky.jiri |
Use panic() instead of an infinite loop at the unreachable end of …
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@aae2869
|
2 years |
zarevucky.jiri |
Replace THREAD→ticks with CPU→preempt_deadline
This removes a bit …
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@128359eb
|
5 years |
martin |
Replace get_stack_base() with builtin_frame_address(0)
The usage of …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|