Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2023-03-13 | kernel: convert GlobalSchedulerContext, KAddressArbiter, KScopedSchedulerLockAndSleep, KThreadQueue to new style | Liam | 1 | -6/+6 | |
2022-07-15 | kernel: Ensure all uses of disable_count are balanced | Liam | 1 | -0/+2 | |
2022-07-15 | kernel: fix single-core preemption points | Liam | 1 | -4/+1 | |
2022-07-15 | kernel: fix issues with single core mode | Liam | 1 | -6/+18 | |
2022-07-15 | kernel: use KScheduler from mesosphere | Liam | 1 | -132/+88 | |
2022-07-02 | common/fiber: make fibers easier to use | Liam | 1 | -1/+0 | |
2022-06-30 | cpu_manager: properly check idle on return from preemption | Liam | 1 | -0/+5 | |
2022-06-23 | kernel: make current thread pointer thread local | Liam | 1 | -10/+2 | |
2022-04-23 | general: Convert source file copyright comments over to SPDX | Morph | 1 | -3/+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. | |||||
2021-12-07 | core: hle: kernel: Ensure idle threads are closed before destroying scheduler. | bunnei | 1 | -0/+2 | |
2021-10-16 | SVC: Implement svcInfo:IdleTickCount | Fernando Sahmkow | 1 | -0/+5 | |
Used by the Witcher 3 | |||||
2021-09-24 | general: Update style to clang-format-12 | ameerj | 1 | -1/+1 | |
2021-08-26 | Revert "kernel: Various improvements to scheduler" | bunnei | 1 | -2/+0 | |
2021-08-07 | core: hle: kernel: Ensure idle threads are closed before destroying scheduler. | bunnei | 1 | -0/+2 | |
2021-05-16 | core: Make variable shadowing a compile-time error | Lioncash | 1 | -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. | |||||
2021-05-08 | kernel: Eliminate variable shadowing | Lioncash | 1 | -1/+1 | |
Now that the large kernel refactor is merged, we can eliminate the remaining variable shadowing cases. | |||||
2021-05-06 | fixup! hle: kernel: Rename Process to KProcess. | bunnei | 1 | -1/+1 | |
2021-05-06 | hle: kernel: Rename Process to KProcess. | bunnei | 1 | -3/+3 | |
2021-05-06 | hle: kernel: Refactor several threads/events/sharedmemory to use slab heaps. | bunnei | 1 | -2/+2 | |
2021-05-06 | hle: kernel: Migrate idle threads. | bunnei | 1 | -3/+3 | |
2021-04-07 | Amend bizarre clang-format suggestions | Lioncash | 1 | -1/+1 | |
2021-04-07 | k_scheduler: Mark KScopedSchedulerLock as [[nodiscard]] | Lioncash | 1 | -1/+1 | |
Prevents logic bugs like: KScopedSchedulerLock{kernel}; instead of: KScopedSchedulerLock lk{kernel}; from slipping through. | |||||
2021-03-21 | hle: kernel: Migrate some code from Common::SpinLock to KSpinLock. | bunnei | 1 | -5/+2 | |
2021-03-06 | Revert "core: Switch to unique_ptr for usage of Common::Fiber." | bunnei | 1 | -5/+5 | |
2021-02-27 | core: Switch to unique_ptr for usage of Common::Fiber. | bunnei | 1 | -5/+5 | |
- 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. | |||||
2021-01-29 | hle: kernel: Allocate a dummy KThread for each host thread, and use it for scheduling. | bunnei | 1 | -2/+2 | |
2021-01-29 | hle: kernel: k_scheduler: Use atomics for current_thread, etc. | bunnei | 1 | -3/+4 | |
2021-01-29 | hle: kernel: Recode implementation of KThread to be more accurate. | bunnei | 1 | -9/+15 | |
2021-01-29 | core: hle: kernel: Rename Thread to KThread. | bunnei | 1 | -12/+12 | |
2021-01-11 | hle: kernel: k_scheduler: Cleanup OnThreadPriorityChanged. | bunnei | 1 | -2/+1 | |
2021-01-11 | hle: kernel: thread: Replace ThreadStatus/ThreadSchedStatus with a single ThreadState. | bunnei | 1 | -2/+2 | |
- This is how the real kernel works, and is more accurate and simpler. | |||||
2020-12-06 | hle: kernel: KScheduler: Various style fixes based on code review feedback. | bunnei | 1 | -28/+21 | |
2020-12-06 | hle: kernel: Migrate to KScopedSchedulerLock. | bunnei | 1 | -6/+4 | |
2020-12-06 | hle: kernel: Separate KScopedSchedulerLockAndSleep from k_scheduler. | bunnei | 1 | -19/+0 | |
2020-12-06 | hle: kernel: Separate KScheduler from GlobalSchedulerContext class. | bunnei | 1 | -71/+3 | |
2020-12-06 | hle: kernel: Rewrite scheduler implementation based on Mesopshere. | bunnei | 1 | -154/+131 | |
2020-11-29 | kernel: scheduler: Minor cleanup to remove duplicated code. | bunnei | 1 | -0/+2 | |
2020-08-14 | kernel/scheduler: Mark SchedulerLock constructor as nodiscard | Lioncash | 1 | -1/+1 | |
Allows the compiler to warn about cases where the constructor is used but then immediately discarded, which is a potential cause of locking/unlocking bugs. | |||||
2020-07-13 | kernel/scheduler: Use std::mutex instead of spin lock | ReinUsesLisp | 1 | -1/+1 | |
Profiling shows that this is a highly contested mutex, causing dimishing results compared to a OS lock. std::mutex implementations can spin for a while before falling back to an OS lock. This avoids wasting precious CPU cycles in a no-op. | |||||
2020-06-28 | Core/Common: Address Feedback. | Fernando Sahmkow | 1 | -0/+4 | |
2020-06-27 | Kernel: Correct Host Context on Threads and Scheduler. | Fernando Sahmkow | 1 | -1/+1 | |
2020-06-27 | SingleCore: Improve Cycle timing Behavior and replace mutex in global scheduler for spinlock. | Fernando Sahmkow | 1 | -1/+1 | |
2020-06-27 | CPU_Manager: Unload/Reload threads on preemption on SingleCore | Fernando Sahmkow | 1 | -0/+10 | |
2020-06-27 | Kernel: Fixes, corrections and asserts to scheduler and different svcs. | Fernando Sahmkow | 1 | -2/+3 | |
2020-06-27 | Scheduler: Release old thread fiber before trying to switch to the next thread fiber. | Fernando Sahmkow | 1 | -0/+9 | |
2020-06-27 | Kernel: Corrections to Scheduling. | Fernando Sahmkow | 1 | -0/+2 | |
2020-06-27 | General: Add Asserts | Fernando Sahmkow | 1 | -0/+1 | |
2020-06-27 | SVC: Correct SendSyncRequest. | Fernando Sahmkow | 1 | -0/+2 | |
2020-06-27 | General: Recover Prometheus project from harddrive failure | Fernando Sahmkow | 1 | -38/+56 | |
This commit: Implements CPU Interrupts, Replaces Cycle Timing for Host Timing, Reworks the Kernel's Scheduler, Introduce Idle State and Suspended State, Recreates the bootmanager, Initializes Multicore system. | |||||
2020-03-03 | core: Implement separate A32/A64 ARM interfaces. | bunnei | 1 | -2/+1 | |
2020-02-22 | Kernel: Address Feedback. | Fernando Sahmkow | 1 | -4/+4 | |
2020-02-22 | Kernel: Implement Scheduler locks | Fernando Sahmkow | 1 | -0/+41 | |
2020-02-22 | Kernel: Make global scheduler depend on KernelCore | Fernando Sahmkow | 1 | -2/+3 | |
2020-02-12 | Core: Set all hardware emulation constants in a single file. | Fernando Sahmkow | 1 | -6/+7 | |
2019-12-08 | kernel: Remove unnecessary includes | Lioncash | 1 | -2/+3 | |
Over the course of the changes to the kernel code, a few includes are no longer necessary, particularly with the change over to std::shared_ptr from Boost's intrusive_ptr. | |||||
2019-11-25 | kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154) | bunnei | 1 | -6/+6 | |
* kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. - See https://github.com/citra-emu/citra/pull/4710 for details. | |||||
2019-11-12 | kernel: Resolve sign conversion warnings | Lioncash | 1 | -18/+18 | |
Uncovered a bug within Thread's SetCoreAndAffinityMask() where an unsigned variable (ideal_core) was being compared against "< 0", which would always be a false condition. We can also get rid of an unused function (GetNextProcessorId) which contained a sign mismatch warning. | |||||
2019-10-28 | scheduler: Mark parameter of AskForReselectionOrMarkRedundant() as const | Lioncash | 1 | -1/+1 | |
This is only compared against, so it can be made const. | |||||
2019-10-28 | scheduler: Initialize class members directly where applicable | Lioncash | 1 | -1/+1 | |
Reduces the overall amount of code. | |||||
2019-10-28 | scheduler: Amend documentation comments | Lioncash | 1 | -46/+59 | |
Adjusts the formatting of a few of the comments an ensures they get recognized as proper Doxygen comments. | |||||
2019-10-15 | Kernel: Address Feedback. | Fernando Sahmkow | 1 | -41/+24 | |
2019-10-15 | Kernel Scheduler: Make sure the global scheduler shutdowns correctly. | Fernando Sahmkow | 1 | -0/+7 | |
2019-10-15 | Scheduler: Corrections to YieldAndBalanceLoad and Yield bombing protection. | Fernando Sahmkow | 1 | -1/+1 | |
2019-10-15 | Kernel: Initial implementation of thread preemption. | Fernando Sahmkow | 1 | -0/+4 | |
2019-10-15 | Scheduler: Add protections for Yield bombing | Fernando Sahmkow | 1 | -4/+4 | |
In case of redundant yields, the scheduler will now idle the core for it's timeslice, in order to avoid continuously yielding the same thing over and over. | |||||
2019-10-15 | Kernel: Style and Corrections | Fernando Sahmkow | 1 | -22/+31 | |
2019-10-15 | Comment and reorganize the scheduler | Fernando Sahmkow | 1 | -5/+33 | |
2019-10-15 | Implement a new Core Scheduler | Fernando Sahmkow | 1 | -103/+117 | |
2019-03-30 | kernel/scheduler: Remove unused parameter to AddThread() | Lioncash | 1 | -1/+1 | |
This was made unused in b404fcdf1443b91ac9994c05ad1fe039fcd9675e, but the parameter itself wasn't removed. | |||||
2019-03-27 | Use MultiLevelQueue instead of old ThreadQueueList | Fernando Sahmkow | 1 | -2/+2 | |
2019-03-04 | kernel/scheduler: Pass in system instance in constructor | Lioncash | 1 | -2/+4 | |
Avoids directly relying on the global system instance and instead makes an arbitrary system instance an explicit dependency on construction. This also allows removing dependencies on some global accessor functions as well. | |||||
2018-12-03 | scheduler: Only work steal higher priority threads from other cores | Zach Hilman | 1 | -4/+1 | |
2018-11-22 | scheduler: Add explanations for YieldWith and WithoutLoadBalancing | Zach Hilman | 1 | -2/+68 | |
2018-11-19 | svc: Implement yield types 0 and -1 | Zach Hilman | 1 | -0/+6 | |
2018-10-26 | svc: Implement svcGetInfo command 0xF0000002 | Lioncash | 1 | -0/+19 | |
This retrieves: if (curr_thread == handle_thread) { result = total_thread_ticks + (hardware_tick_count - last_context_switch_ticks); } else if (curr_thread == handle_thread && sub_id == current_core_index) { result = hardware_tick_count - last_context_switch_ticks; } | |||||
2018-09-25 | kernel/scheduler: Take ARM_Interface instance by reference in the constructor | Lioncash | 1 | -2/+2 | |
It doesn't make sense to allow a scheduler to be constructed around a null pointer. | |||||
2018-08-25 | core: Namespace all code in the arm subdirectory under the Core namespace | Lioncash | 1 | -2/+4 | |
Gets all of these types and interfaces out of the global namespace. | |||||
2018-08-12 | scheduler: Make HaveReadyThreads() a const member function | Lioncash | 1 | -1/+1 | |
This function doesn't modify instance state, so the const qualifier can be added to it. | |||||
2018-08-02 | kernel: Move object class to its own source files | Lioncash | 1 | -0/+1 | |
General moving to keep kernel object types separate from the direct kernel code. Also essentially a preliminary cleanup before eliminating global kernel state in the kernel code. | |||||
2018-07-31 | kernel: Remove unnecessary includes | Lioncash | 1 | -1/+2 | |
Removes unnecessary direct dependencies in some headers and also gets rid of indirect dependencies that were being relied on to be included. | |||||
2018-05-11 | scheduler: Protect scheduling functions with a global mutex. | bunnei | 1 | -0/+3 | |
2018-02-19 | scheduler: Cleanup based on PR feedback. | bunnei | 1 | -3/+2 | |
2018-02-18 | kernel: Add Scheduler, which encapsulates the scheduling loading from Thread module. | bunnei | 1 | -0/+74 | |