zephyr/kernel
Andy Ross 9ecc4ead68 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: Andy Ross <andrew.j.ross@intel.com>
2018-08-29 10:01:41 -04:00
..
include sched: Properly account for timeslicing in tickless mode 2018-08-29 10:01:41 -04:00
alert.c
atomic_c.c
CMakeLists.txt
compiler_stack_protect.c
device.c
errno.c kernel: userspace: reserve stack space to store local data 2018-08-17 09:40:52 -07:00
idle.c
init.c kernel: Enable interrupts for MULTITHREADING=n on supported arch's 2018-08-27 16:15:10 -04:00
int_latency_bench.c
Kconfig kernel: event_logger: remove kernel_event_logger 2018-08-21 05:45:47 -07:00
Kconfig.power_mgmt doc: fix kconfig misspellings 2018-08-28 13:58:46 -04:00
mailbox.c kernel: Explicitly ignoring memcpy return 2018-08-16 19:47:41 -07:00
mem_domain.c
mem_slab.c
mempool.c kernel: Explicitly ignoring memcpy return 2018-08-16 19:47:41 -07:00
msg_q.c kernel: Explicitly ignoring memcpy return 2018-08-16 19:47:41 -07:00
mutex.c tracing: support generic tracing hooks 2018-08-21 05:45:47 -07:00
pipes.c
poll.c kernel: Explicitly ignoring memcpy return 2018-08-16 19:47:41 -07:00
queue.c kernel: Explicitly ignoring results of queue_insert 2018-08-16 19:47:41 -07:00
sched.c sched: Properly account for timeslicing in tickless mode 2018-08-29 10:01:41 -04:00
sem.c tracing: support generic tracing hooks 2018-08-21 05:45:47 -07:00
smp.c
stack.c
sys_clock.c kernel: Remove unused variable 2018-08-26 19:39:52 -07:00
system_work_q.c
thread_abort.c
thread.c kernel: event_logger: remove kernel_event_logger 2018-08-21 05:45:47 -07:00
timer.c
userspace_handler.c
userspace.c kernel: Explicitly ignoring memcpy return 2018-08-16 19:47:41 -07:00
version.c
work_q.c