diff --git a/kernel/include/kswap.h b/kernel/include/kswap.h index 75f298cdbec..cfc7036037e 100644 --- a/kernel/include/kswap.h +++ b/kernel/include/kswap.h @@ -25,7 +25,6 @@ extern struct k_spinlock sched_spinlock; * to restore the lock state to whatever the thread's counter * expects. */ -void z_smp_reacquire_global_lock(struct k_thread *thread); void z_smp_release_global_lock(struct k_thread *thread); /* context switching and scheduling-related routines */ diff --git a/kernel/smp.c b/kernel/smp.c index 03d0a9d6bf6..6e58a7b8964 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -41,17 +41,6 @@ void z_smp_global_unlock(unsigned int key) arch_irq_unlock(key); } -void z_smp_reacquire_global_lock(struct k_thread *thread) -{ - if (thread->base.global_lock_count) { - arch_irq_lock(); - - while (!atomic_cas(&global_lock, 0, 1)) { - } - } -} - - /* Called from within z_swap(), so assumes lock already held */ void z_smp_release_global_lock(struct k_thread *thread) {