Skip to content

Commit

Permalink
sched: remove redundant busy check from context switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Jan 17, 2025
1 parent 917a258 commit 4dca68a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/sched/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,6 @@ void schedule() {
if(!acquireLock(&lock)) return;
setLocalSched(false);

if(!schedBusy()) {
releaseLock(&lock);
return;
}

Process *p = getProcess(getPid());
Thread *t = getThread(getTid());
Thread *current = t;
Expand Down

0 comments on commit 4dca68a

Please sign in to comment.