zephyr/kernel
Andy Ross 02165d76a0 kernel/timeout: Fix race with clock timeout setting
The call to z_clock_set_timeout() was being made outside the timeout
lock, which can race against other contexts setting sooner-expiring
timeouts.

Also add a long comment to one spot (timeslicing) where this call is
made outside the timeout spinlock (inside the scheduler lock) and why
this is OK.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2018-11-21 12:52:49 +01:00
..
include kernel: expose k_busy_wait() to user mode 2018-11-15 16:20:36 -05:00
alert.c
atomic_c.c
CMakeLists.txt
compiler_stack_protect.c
device.c kernel: expose device_get_binding() to user mode 2018-11-13 19:06:05 -05:00
errno.c
idle.c
init.c kernel: Delimiting the scope of some variables 2018-11-04 11:37:24 -05:00
int_latency_bench.c
Kconfig drivers/timer: Select tickless via driver kconfig flag 2018-11-13 17:10:07 -05:00
Kconfig.power_mgmt
mailbox.c kernel: Delimiting the scope of some variables 2018-11-04 11:37:24 -05:00
mem_domain.c kernel: mem_domain: optimize sane partition checking 2018-11-15 08:18:59 -05:00
mem_slab.c k_mem_slab: track as a kernel object 2018-11-15 16:20:36 -05:00
mempool.c
msg_q.c kernel: msg_q: k_msgq_peek() implementation 2018-11-19 17:53:22 -05:00
mutex.c
pipes.c kernel: Delimiting the scope of some variables 2018-11-04 11:37:24 -05:00
poll.c kernel: Change k_poll_signal api 2018-11-04 11:37:24 -05:00
queue.c
sched.c kernel/timeout: Fix race with clock timeout setting 2018-11-21 12:52:49 +01:00
sem.c
smp.c
stack.c kernel: stack: Making if's body a compound statement 2018-11-04 11:37:24 -05:00
system_work_q.c
thread_abort.c
thread.c kernel: expose k_busy_wait() to user mode 2018-11-15 16:20:36 -05:00
timeout.c kernel/timeout: Fix race with clock timeout setting 2018-11-21 12:52:49 +01:00
timer.c
userspace_handler.c
userspace.c kernel: Make tag identifiers unique 2018-11-06 16:20:15 -05:00
version.c
work_q.c