]> git.dujemihanovic.xyz Git - u-boot.git/commit
zynq: timer: Fix wrong timer calculation
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Mon, 13 Apr 2015 05:27:04 +0000 (10:57 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 29 Apr 2015 09:19:03 +0000 (11:19 +0200)
commita7858f62d7bff145fe699ea0af7b8f61a2affa8a
tree0a62981c13494b0252b4eeab2b634e1fd0d0460e
parenteddabd16625d8de56589564a6b6262423accd9eb
zynq: timer: Fix wrong timer calculation

Fix wrong timer calculation in get_timer_masked incase of
overflow.
This fixes the issue of getting wrong time from get_timer()
calls.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/cpu/armv7/zynq/timer.c