Home
last modified time | relevance | path

Searched refs:sched_spinlock (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.6.0/kernel/include/
Dkswap.h20 extern struct k_spinlock sched_spinlock;
115 if (is_spinlock && lock != NULL && lock != &sched_spinlock) { in do_swap()
118 if (!is_spinlock || lock != &sched_spinlock) { in do_swap()
119 (void) k_spin_lock(&sched_spinlock); in do_swap()
144 z_spin_lock_set_owner(&sched_spinlock); in do_swap()
166 k_spin_release(&sched_spinlock); in do_swap()
169 k_spin_release(&sched_spinlock); in do_swap()
/Zephyr-Core-3.6.0/kernel/
Dsched.c57 struct k_spinlock sched_spinlock; variable
514 K_SPINLOCK(&sched_spinlock) { in k_sched_time_slice_set()
525 K_SPINLOCK(&sched_spinlock) { in k_thread_time_slice_set()
536 k_spinlock_key_t key = k_spin_lock(&sched_spinlock); in z_time_slice()
542 k_spin_unlock(&sched_spinlock, key); in z_time_slice()
551 k_spin_unlock(&sched_spinlock, key); in z_time_slice()
553 key = k_spin_lock(&sched_spinlock); in z_time_slice()
561 k_spin_unlock(&sched_spinlock, key); in z_time_slice()
656 K_SPINLOCK(&sched_spinlock) { in z_ready_thread()
665 K_SPINLOCK(&sched_spinlock) { in z_move_thread_to_end_of_prio_q()
[all …]