Home
last modified time | relevance | path

Searched hist:"0 a7edce0ef26d9a8c11e9c097e0ed12cf334e27d" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/timer/
H A Dtimer-uclass.c0a7edce0ef26d9a8c11e9c097e0ed12cf334e27d Wed Jan 06 17:33:03 UTC 2016 Stephen Warren <swarren@nvidia.com> dm: timer: refuse timers with zero clock_rate

If a timer has a zero clock_rate, get_tbclk() will return zero for it,
which will cause tick_to_time() to perform a division-by-zero, which will
crash U-Boot.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>