Skip to content

Commit

Permalink
re-enabled the load balancing algorithm in the scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
FlareCoding committed Sep 14, 2024
1 parent 6f17614 commit a68ca20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/src/sched/sched.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ void Scheduler::registerCpuRunQueue(int cpu) {
void Scheduler::addTask(Task* task, int cpu) {
if (cpu == -1) {
preemptDisable();
// cpu = static_cast<int>(_loadBalance());
cpu = 3;
cpu = static_cast<int>(_loadBalance());
preemptEnable();
}

Expand Down

0 comments on commit a68ca20

Please sign in to comment.