kernel/thread: Deduplicate scheduler switching code

The code in both places was the same verbatim, so we can extract it to a
function to deduplicate the logic.
This commit is contained in:
Lioncash 2018-11-13 23:58:41 -05:00
parent 65bd03d74c
commit f9db75fe40
2 changed files with 13 additions and 37 deletions

View file

@ -374,6 +374,8 @@ private:
explicit Thread(KernelCore& kernel);
~Thread() override;
void ChangeScheduler();
Core::ARM_Interface::ThreadContext context{};
u32 thread_id = 0;