summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_scheduler.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Ensure correctness of atomic store orderingLiam2022-11-091-3/+6
|
* kernel: refactor dummy thread wakeupsLiam2022-10-251-2/+24
|
* kernel: Ensure all uses of disable_count are balancedLiam2022-07-151-8/+13
|
* kernel: be more careful about initialization path for HLE threadsLiam2022-07-151-0/+1
|
* kernel: fix single-core preemption pointsLiam2022-07-151-0/+13
|
* kernel: fix issues with single core modeLiam2022-07-151-91/+82
|
* kernel: use KScheduler from mesosphereLiam2022-07-151-347/+376
|
* common/fiber: make fibers easier to useLiam2022-07-021-6/+1
|
* kernel: make current thread pointer thread localLiam2022-06-231-9/+16
|
* Merge pull request #8432 from liamwhite/watchpointbunnei2022-06-221-0/+1
|\ | | | | core/debugger: memory breakpoint support
| * core/debugger: memory breakpoint supportLiam2022-06-161-0/+1
| |
* | kernel: fix some uses of disable_countLiam2022-06-161-0/+1
|/
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-6/+2
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* hle: kernel: Use std::mutex instead of spin locks for most kernel locking.bunnei2022-04-121-4/+4
|
* core: Reduce unused includesameerj2022-03-191-1/+0
|
* hle: kernel: KScheduler: Fix deadlock with core waiting for a thread lock that has migrated.bunnei2022-01-271-22/+23
| | | | | | | | - Previously, it was possible for a thread migration to occur from core A to core B. - Next, core B waits on a guest lock that must be released by a thread queued for core A. - Meanwhile, core A is still waiting on the core B's current thread lock - resulting in a deadlock. - Fix this by try-locking the thread lock. - Fixes softlocks in FF8 and Pokemon Legends Arceus.
* hle: kernel: KThread: Ensure host (dummy) threads block on locking.bunnei2022-01-221-0/+3
| | | | | - But do not enter the priority queue, as otherwise they will be scheduled. - Allows dummy threads to use guest synchronization primitives.
* hle: kernel: KThread: Decrease DummyThread priority to ensure it is never scheduled.bunnei2022-01-211-0/+1
|
* hle: kernel: KScheduler: Ensure dummy threads are never scheduled.bunnei2022-01-211-0/+5
| | | | - These are only used by host threads for locking.
* hle: remove no-op codeValeri2022-01-171-2/+0
| | | Found by static analysis with PVS-Studio. Nobody seems to really know what was it doing there.
* core: hle: kernel: Implement thread pinning.bunnei2021-12-311-0/+8
| | | | | - We largely had the mechanics in place for thread pinning, this change hooks these up. - Validated with tests https://github.com/Atmosphere-NX/Atmosphere/blob/master/tests/TestSvc/source/test_thread_pinning.cpp.
* hle: kernel k_scheduler: EnableScheduling: Remove redundant GetCurrentThreadPointer calls.bunnei2021-12-071-3/+5
|
* hle: kernel: fix scheduling ops from HLE host thread.FernandoS272021-12-071-3/+3
|
* hle: kernel: Add a flag for indicating that the kernel is currently shutting down.bunnei2021-12-071-0/+10
|
* core: hle: kernel: k_scheduler: Improve DisableScheduling and EnableScheduling.bunnei2021-12-071-14/+9
|
* core: hle: kernel: k_scheduler: Remove unnecessary MakeCurrentProcess.bunnei2021-12-071-5/+0
|
* core: hle: kernel: k_scheduler: Improve ScheduleImpl.bunnei2021-12-071-6/+7
|
* core: hle: kernel: k_scheduler: Improve Unload.bunnei2021-12-071-17/+29
|
* core: hle: kernel: Ensure idle threads are closed before destroying scheduler.bunnei2021-12-071-1/+5
|
* Revert "kernel: Various improvements to scheduler"bunnei2021-08-261-46/+39
|
* core: hle: kernel: k_scheduler: Improve DisableScheduling and EnableScheduling.bunnei2021-08-071-14/+9
|
* core: hle: kernel: k_scheduler: Remove unnecessary MakeCurrentProcess.bunnei2021-08-071-5/+0
|
* core: hle: kernel: k_scheduler: Improve ScheduleImpl.bunnei2021-08-071-6/+7
|
* core: hle: kernel: k_scheduler: Improve Unload.bunnei2021-08-071-17/+29
|
* core: hle: kernel: Ensure idle threads are closed before destroying scheduler.bunnei2021-08-071-1/+5
|
* core/arm_interface: Call SVC after end of dynarmic block.Markus Wick2021-05-271-1/+0
| | | | | | So we can modify all of dynarmic states within SVC without ExceptionalExit. Especially as the ExceptionalExit hack is dropped on upstream dynarmic.
* core: Make variable shadowing a compile-time errorLioncash2021-05-161-1/+1
| | | | | | Now that we have most of core free of shadowing, we can enable the warning as an error to catch anything that may be remaining and also eliminate this class of logic bug entirely.
* kernel: Eliminate variable shadowingLioncash2021-05-081-10/+10
| | | | | Now that the large kernel refactor is merged, we can eliminate the remaining variable shadowing cases.
* hle: kernel: Rename Process to KProcess.bunnei2021-05-061-8/+8
|
* hle: kernel: Refactor several threads/events/sharedmemory to use slab heaps.bunnei2021-05-061-7/+9
|
* hle: kernel: Move slab heap management to KernelCore.bunnei2021-05-061-1/+3
|
* hle: kernel: Ensure all kernel objects with KAutoObject are properly created.bunnei2021-05-061-0/+1
|
* hle: kernel: Migrate idle threads.bunnei2021-05-061-10/+6
|
* hle: kernel: Migrate some code from Common::SpinLock to KSpinLock.bunnei2021-03-211-11/+11
|
* common: Fiber: use a reference for YieldTo.bunnei2021-03-071-8/+3
| | | | - Fixes another small leak.
* hle: kernel: KThread: Rework dummy threads & fix memory leak.bunnei2021-03-061-3/+3
| | | | | - Dummy threads are created on thread local storage for all host threads. - Fixes a leak by removing creation of fibers, which are not applicable here.
* Revert "core: Switch to unique_ptr for usage of Common::Fiber."bunnei2021-03-061-9/+9
|
* core: Switch to unique_ptr for usage of Common::Fiber.bunnei2021-02-271-9/+9
| | | | | - With using unique_ptr instead of shared_ptr, we have more explicit ownership of the context. - Fixes a memory leak due to circular reference of the shared pointer.
* hle: kernel: Allocate a dummy KThread for each host thread, and use it for scheduling.bunnei2021-01-291-3/+3
|
* hle: kernel: k_scheduler: Use atomics for current_thread, etc.bunnei2021-01-291-23/+24
|
* hle: kernel: k_scheduler: Fix for single core mode.bunnei2021-01-291-1/+2
|
* hle: kernel: KScheduler: Introduce thread context_guard.bunnei2021-01-291-3/+15
|
* hle: kernel: Recode implementation of KThread to be more accurate.bunnei2021-01-291-63/+81
|
* hle: kernel: KThread: Clean up thread priorities.bunnei2021-01-291-1/+1
|
* hle: kernel: KThread: Reorganize thread priority defaults.bunnei2021-01-291-3/+3
|
* hle: kernel: KThread: Fix ThreadType definition.bunnei2021-01-291-1/+1
|
* hle: kernel: KThread: Remove thread types that do not exist.bunnei2021-01-291-14/+13
|
* core: hle: kernel: Rename Thread to KThread.bunnei2021-01-291-35/+35
|
* common/bit_util: Replace CLZ/CTZ operations with standardized onesLioncash2021-01-151-3/+5
| | | | Makes for less code that we need to maintain.
* hle: kernel: k_scheduler: Cleanup OnThreadPriorityChanged.bunnei2021-01-111-4/+2
|
* hle: kernel: thread: Replace ThreadStatus/ThreadSchedStatus with a single ThreadState.bunnei2021-01-111-16/+16
| | | | - This is how the real kernel works, and is more accurate and simpler.
* core: hle: kernel: Update KSynchronizationObject.bunnei2021-01-111-3/+2
|
* hle: kernel: KScheduler: Various style fixes based on code review feedback.bunnei2020-12-061-22/+20
|
* hle: kernel: Use C++ style comments in KScheduler, etc.bunnei2020-12-061-109/+94
|
* hle: kernel: Migrate to KScopedSchedulerLock.bunnei2020-12-061-9/+6
|
* hle: kernel: Separate KScopedSchedulerLockAndSleep from k_scheduler.bunnei2020-12-061-24/+1
|
* hle: kernel: Separate KScheduler from GlobalSchedulerContext class.bunnei2020-12-061-47/+1
|
* hle: kernel: Rewrite scheduler implementation based on Mesopshere.bunnei2020-12-061-0/+873