To guarantee that the compiler does not reorder the execution of irq_lock() with preceding operations, a volatile qualifier is placed before the declaration of the ticks variable, which then ensures that irq_lock() is executed after the tick calculation but before accessing the ready and timeout queues. Without the volatile keyword interrupts will be disabled during the calculation of the ticks, which increases interrupt latency significantly. Change-Id: I2da82a1282e344f3b8d69e9457b36a4cb1d9ec18 Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| configs | ||
| unified | ||
| Kconfig | ||