Skip to content

Commit c70a619

Browse files
peter-mitsisnashif
authored andcommitted
kernel: Remove unused z_ready_thread_locked()
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]>
1 parent f7e130f commit c70a619

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

kernel/include/ksched.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ void z_reset_time_slice(struct k_thread *curr);
6060
void z_sched_ipi(void);
6161
void z_sched_start(struct k_thread *thread);
6262
void z_ready_thread(struct k_thread *thread);
63-
void z_ready_thread_locked(struct k_thread *thread);
6463
void z_requeue_current(struct k_thread *curr);
6564
struct k_thread *z_swap_next_thread(void);
6665
void z_thread_abort(struct k_thread *thread);

kernel/sched.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -389,13 +389,6 @@ static void ready_thread(struct k_thread *thread)
389389
}
390390
}
391391

392-
void z_ready_thread_locked(struct k_thread *thread)
393-
{
394-
if (thread_active_elsewhere(thread) == NULL) {
395-
ready_thread(thread);
396-
}
397-
}
398-
399392
void z_ready_thread(struct k_thread *thread)
400393
{
401394
K_SPINLOCK(&_sched_spinlock) {

0 commit comments

Comments
 (0)