Lines Matching +full:has +full:- +full:lock
4 * SPDX-License-Identifier: Apache-2.0
24 /* When interactively debugging, the cycle diff can overflow 32-bit variable */
65 static struct k_spinlock lock; variable
78 k_spinlock_key_t key = k_spin_lock(&lock); in arm_arch_timer_compare_isr()
82 * Workaround required for Cortex-A9 MPCore erratum 740657 in arm_arch_timer_compare_isr()
83 * comp. ARM Cortex-A9 processors Software Developers Errata Notice, in arm_arch_timer_compare_isr()
93 k_spin_unlock(&lock, key); in arm_arch_timer_compare_isr()
99 uint64_t delta_cycles = curr_cycle - last_cycle; in arm_arch_timer_compare_isr()
127 * after this ISR has been executed) the error will be detected by the in arm_arch_timer_compare_isr()
128 * check performed upon entry of the ISR -> the event flag is not set, in arm_arch_timer_compare_isr()
129 * therefore, no actual hardware interrupt has occurred. in arm_arch_timer_compare_isr()
136 k_spin_unlock(&lock, key);
151 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout()
158 if ((next_cycle - last_cycle) > CYCLES_MAX) { in sys_clock_set_timeout()
165 k_spin_unlock(&lock, key); in sys_clock_set_timeout()
174 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed()
176 uint64_t delta_cycles = curr_cycle - last_cycle; in sys_clock_elapsed()
180 k_spin_unlock(&lock, key); in sys_clock_elapsed()
208 /* this handles the rollover on an unsigned 32-bit value */ in arch_busy_wait()
209 if ((current_cycles - start_cycles) >= cycles_to_wait) { in arch_busy_wait()