Fernando Sahmkow
3a94e7ea33
Comment and reorganize the scheduler
7 years ago
Fernando Sahmkow
b164d8ee53
Implement a new Core Scheduler
7 years ago
Lioncash
824b8e4086
kernel/scheduler: Remove unused parameter to AddThread()
This was made unused in b404fcdf14 , but
the parameter itself wasn't removed.
7 years ago
Fernando Sahmkow
dde0814837
Use MultiLevelQueue instead of old ThreadQueueList
7 years ago
Lioncash
fad20213e6
kernel/scheduler: Pass in system instance in constructor
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.
7 years ago
Zach Hilman
b5af41a07b
scheduler: Only work steal higher priority threads from other cores
7 years ago
Zach Hilman
820d81b9a5
scheduler: Add explanations for YieldWith and WithoutLoadBalancing
7 years ago
Zach Hilman
409dcf0e0a
svc: Implement yield types 0 and -1
7 years ago
Lioncash
6594853eb1
svc: Implement svcGetInfo command 0xF0000002
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;
}
7 years ago
Lioncash
a58eefa7e4
kernel/scheduler: Take ARM_Interface instance by reference in the constructor
It doesn't make sense to allow a scheduler to be constructed around a
null pointer.
7 years ago
Lioncash
43e0d865fa
core: Namespace all code in the arm subdirectory under the Core namespace
Gets all of these types and interfaces out of the global namespace.
7 years ago
Lioncash
e850ff63bc
scheduler: Make HaveReadyThreads() a const member function
This function doesn't modify instance state, so the const qualifier can
be added to it.
8 years ago
Lioncash
bf45092c61
kernel: Move object class to its own source files
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.
8 years ago
Lioncash
a2304fad16
kernel: Remove unnecessary includes
Removes unnecessary direct dependencies in some headers and also gets
rid of indirect dependencies that were being relied on to be included.
8 years ago
bunnei
91af2f94e8
scheduler: Protect scheduling functions with a global mutex.
8 years ago
bunnei
8db80d8389
scheduler: Cleanup based on PR feedback.
8 years ago
bunnei
c78d495161
kernel: Add Scheduler, which encapsulates the scheduling loading from Thread module.
8 years ago