Skip to content

Commit

Permalink
kernel: Remove unused z_ready_thread_locked()
Browse files Browse the repository at this point in the history
Removing the routine z_ready_thread_locked() as it is not
used anywhere. It was a leftover artefact from development
that previously escaped cleanup.

Signed-off-by: Peter Mitsis <[email protected]>
  • Loading branch information
peter-mitsis authored and nashif committed Oct 15, 2024
1 parent f7e130f commit c70a619
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion kernel/include/ksched.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ void z_reset_time_slice(struct k_thread *curr);
void z_sched_ipi(void);
void z_sched_start(struct k_thread *thread);
void z_ready_thread(struct k_thread *thread);
void z_ready_thread_locked(struct k_thread *thread);
void z_requeue_current(struct k_thread *curr);
struct k_thread *z_swap_next_thread(void);
void z_thread_abort(struct k_thread *thread);
Expand Down
7 changes: 0 additions & 7 deletions kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,13 +389,6 @@ static void ready_thread(struct k_thread *thread)
}
}

void z_ready_thread_locked(struct k_thread *thread)
{
if (thread_active_elsewhere(thread) == NULL) {
ready_thread(thread);
}
}

void z_ready_thread(struct k_thread *thread)
{
K_SPINLOCK(&_sched_spinlock) {
Expand Down

0 comments on commit c70a619

Please sign in to comment.