Skip to content
Commit 02165d76 authored by Andy Ross's avatar Andy Ross Committed by Carles Cufí
Browse files

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: default avatarAndy Ross <andrew.j.ross@intel.com>
parent bfd98954
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment