Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,17 @@ static ALWAYS_INLINE void *curr_cpu_runq(void)
static ALWAYS_INLINE void runq_add(struct k_thread *thread)
{
__ASSERT_NO_MSG(!z_is_idle_thread_object(thread));
__ASSERT_NO_MSG(!thread_is_metairq(thread));
__ASSERT_NO_MSG(!is_thread_dummy(thread));

_priq_run_add(thread_runq(thread), thread);
}

static ALWAYS_INLINE void runq_remove(struct k_thread *thread)
{
__ASSERT_NO_MSG(!z_is_idle_thread_object(thread));
__ASSERT_NO_MSG(!thread_is_metairq(thread));
__ASSERT_NO_MSG(!is_thread_dummy(thread));

_priq_run_remove(thread_runq(thread), thread);
}
Expand Down Expand Up @@ -755,6 +759,9 @@ void z_reschedule_irqlock(uint32_t key)

void k_sched_lock(void)
{
LOG_DBG("scheduler locked (%p:%d)",
_current, _current->base.sched_locked);

K_SPINLOCK(&_sched_spinlock) {
SYS_PORT_TRACING_FUNC(k_thread, sched_lock);

Expand Down
Loading