Skip to content
Commit 60682555 authored by Marek Vedral's avatar Marek Vedral Committed by Carles Cufí
Browse files

drivers/timer/arm_arch_timer: Fix cycles overflow with GDB stub



If GDBSTUB is enabled and the kernel runs in tickless mode, the timer
must not convert the delta cycles to a 32-bit data type (cycle_diff_t in
this case). The delta_ticks variable would overflow and the next timeout
would be set before the current timestamp, thus generating an interrupt
right after leaving the handler. As a result, the system would receive
tens of thousands of interrupts per second and would not boot.

Cc: Michal Sojka <michal.sojka@cvut.cz>
Signed-off-by: default avatarMarek Vedral <marek.vedral@gmail.com>
parent 9e8c00f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment