回复：[Zephyr-devel] Is The tick handler "z_clock_announce" in SMP mode dupulicate caculated？
toggle quoted messageShow quoted text
I still cant understand this flow after read the code.
take cortex-m arch for exmaple, z_clock_isr, is hooked for NVIC vector table, so each cores would call this following the frequency.
so, there must be a z_clock_announce invoked on each cpu, so the current tick would be duplicate caculated? although i know zephyr would nod be exsis such issue, but i did not figure out
where am i wrong, from the coretex-m arch flow, i cant find where block the z_clock_announce calling from each cpu core?
void z_clock_isr(void *arg)
cycle_count += last_load;
dticks = (cycle_count - announced_cycles) / CYC_PER_TICK;
announced_cycles += dticks * CYC_PER_TICK;
overflow_cyc = SysTick->CTRL; /* Reset overflow flag */
overflow_cyc = 0U;
z_clock_announce(TICKLESS ? dticks : 1);