Skip to content
Commit 9ecc4ead authored by Andy Ross's avatar Andy Ross Committed by Anas Nashif
Browse files

sched: Properly account for timeslicing in tickless mode



When adding a new runnable thread in tickless mode, we need to detect
whether it will timeslice with the running thread and reset the timer,
otherwise it won't get any CPU time until the next interrupt fires at
some indeterminate time in the future.

This fixes the specific bug discussed in #7193, but the broader
problem of tickless and timeslicing interacting badly remains.  The
code as it exists needs some rework to avoid all the #ifdef mess.

Signed-off-by: default avatarAndy Ross <andrew.j.ross@intel.com>
parent 6dae106d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment