diff --git a/core/cortex-m0/task.c b/core/cortex-m0/task.c index 59a8e4d7d6..b30cab5c98 100644 --- a/core/cortex-m0/task.c +++ b/core/cortex-m0/task.c @@ -358,7 +358,8 @@ uint32_t task_set_event(task_id_t tskid, uint32_t event, int wait) /* The receiver might run again */ atomic_or(&tasks_ready, 1 << tskid); #ifndef CONFIG_TASK_PROFILING - need_resched_or_profiling = 1; + if (start_called) + need_resched_or_profiling = 1; #endif } else { if (wait) {