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:
parent
7874052df2
commit
4aed856d7f
2 changed files with 0 additions and 12 deletions
|
@ -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 */
|
||||
|
|
11
kernel/smp.c
11
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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue