Lioncash
7bbde5f645
kernel/scheduler: Remove unused parameter to AddThread()
This was made unused in 1913519836 , but
the parameter itself wasn't removed.
7 years ago
Fernando Sahmkow
19cec0236a
Use MultiLevelQueue instead of old ThreadQueueList
7 years ago
Lioncash
38dd80f70f
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
5d50fa0824
scheduler: Only work steal higher priority threads from other cores
7 years ago
Zach Hilman
1a72e1681c
scheduler: Add explanations for YieldWith and WithoutLoadBalancing
7 years ago
Zach Hilman
b1c19bc88f
svc: Implement yield types 0 and -1
7 years ago
Lioncash
9bb7bc911f
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
4ebca28342
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
e46ac56321
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
6082427cbd
scheduler: Make HaveReadyThreads() a const member function
This function doesn't modify instance state, so the const qualifier can
be added to it.
7 years ago
Lioncash
38c2af9330
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
3d2d454c36
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
eabfdfe4ec
scheduler: Protect scheduling functions with a global mutex.
8 years ago
bunnei
87335e8404
scheduler: Cleanup based on PR feedback.
8 years ago
bunnei
650f49fab2
kernel: Add Scheduler, which encapsulates the scheduling loading from Thread module.
8 years ago