summaryrefslogtreecommitdiffhomepage
path: root/Kernel/Sources/ProcessScheduler.cxx
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-07-29 14:51:58 +0200
committerAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-07-29 14:51:58 +0200
commit60902ec5fc462128d264f63f279c7fc362a72e1d (patch)
tree92ec898fb28e0be2fef65094392c3575af721cc2 /Kernel/Sources/ProcessScheduler.cxx
parent30411936809d66538ca279a5b5d20865c54afd5c (diff)
[IMP] Replace SMP manager with Multi Processing manager.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Kernel/Sources/ProcessScheduler.cxx')
-rw-r--r--Kernel/Sources/ProcessScheduler.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/Kernel/Sources/ProcessScheduler.cxx b/Kernel/Sources/ProcessScheduler.cxx
index b5be1dd2..cccd8979 100644
--- a/Kernel/Sources/ProcessScheduler.cxx
+++ b/Kernel/Sources/ProcessScheduler.cxx
@@ -10,7 +10,7 @@
/***********************************************************************************/
#include <KernelKit/ProcessScheduler.hxx>
-#include <KernelKit/SMPManager.hpp>
+#include <KernelKit/MPManager.hpp>
#include <KernelKit/Heap.hxx>
#include <NewKit/String.hpp>
#include <KernelKit/LPC.hxx>
@@ -382,29 +382,29 @@ namespace Kernel
if (!the_stack || new_pid < 0)
return false;
- for (SizeT index = 0UL; index < SMPManager::The().Leak().Count(); ++index)
+ for (SizeT index = 0UL; index < MPManager::The().Leak().Count(); ++index)
{
- if (SMPManager::The().Leak()[index].Leak()->Kind() == kInvalidHart)
+ if (MPManager::The().Leak()[index].Leak()->Kind() == kInvalidHart)
continue;
- if (SMPManager::The().Leak()[index].Leak()->StackFrame() == the_stack)
+ if (MPManager::The().Leak()[index].Leak()->StackFrame() == the_stack)
{
- SMPManager::The().Leak()[index].Leak()->Busy(false);
+ MPManager::The().Leak()[index].Leak()->Busy(false);
continue;
}
- if (SMPManager::The().Leak()[index].Leak()->IsBusy())
+ if (MPManager::The().Leak()[index].Leak()->IsBusy())
continue;
- if (SMPManager::The().Leak()[index].Leak()->Kind() !=
+ if (MPManager::The().Leak()[index].Leak()->Kind() !=
ThreadKind::kHartBoot &&
- SMPManager::The().Leak()[index].Leak()->Kind() !=
+ MPManager::The().Leak()[index].Leak()->Kind() !=
ThreadKind::kHartSystemReserved)
{
- SMPManager::The().Leak()[index].Leak()->Busy(true);
+ MPManager::The().Leak()[index].Leak()->Busy(true);
ProcessHelper::TheCurrentPID() = new_pid;
- return SMPManager::The().Leak()[index].Leak()->Switch(the_stack);
+ return MPManager::The().Leak()[index].Leak()->Switch(the_stack);
}
}