kernel: smp: Remove unused internal API z_smp_reacquire_global_lock()

The internal function z_smp_reacquire_global_lock() has not used by
anywhere inside zephyr code, so remove it.

Fixes #33273.

Signed-off-by: Enjia Mai <enjiax.mai@intel.com>
This commit is contained in:
Enjia Mai 2021-03-12 23:05:56 +08:00 committed by Anas Nashif
commit 4aed856d7f
2 changed files with 0 additions and 12 deletions

View file

@ -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 */

View file

@ -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)
{