Please sign in to comment.
debug: tracing: Rewrite assert on current_thread in CPU stats module
The function sys_trace_thread_switched_out asserts in case sys_trace_thread_switched_in was not called first. This is unintended as tracing.h describes that out should be called before in, thus the reverse of what the assert expects. Fix assert on initial thread switch in, where out is called with current_thread being NULL. Signed-off-by: Danny Oerndrup <email@example.com>
- Loading branch information...