Skip to content
Commit 5951bcd8 authored by EunBong Song's avatar EunBong Song Committed by Gregory Nutt
Browse files

Change ordering of round-robin time slice check (sched_process_scheduler())...

Change ordering of round-robin time slice check (sched_process_scheduler()) and processing of wdog timers (wd_timer()).  wd_timer()'s callback function can change current running task and, hence, must be done after the time slice check.

The time slice check will decrement the currently running task's time slice allotment.  If such a context switch occurs, then the newly started task will lost one could of that allotment before it even has a chance to run.
parent cf8c25df
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment