commit | a74dac89ba9ad31f36819dfaa36af1b7d7d116f5 | [log] [tgz] |
---|---|---|
author | Carlo Caione <ccaione@baylibre.com> | Sun Jan 16 13:16:55 2022 +0100 |
committer | Anas Nashif <anas.nashif@intel.com> | Tue Jan 18 10:41:35 2022 -0500 |
tree | 42b475a997b713816f2af792b7cfe8b2d2d9374c | |
parent | 54271d23e807c7ef0ebc5cc20548d6963afb62c6 [diff] |
kernel: Reset the switch_handler only in the arch code Avoid setting the switch_handler in the z_get_next_switch_handle() code when the context is not fully saved yet to avoid a race against other cores waiting on wait_for_switch(). See issue #40795 and discussion in #41840 Signed-off-by: Carlo Caione <ccaione@baylibre.com>