summaryrefslogtreecommitdiffstats
path: root/common/clock.c
Commit message (Collapse)AuthorAgeFilesLines
* clock: fix possible error on overflow in is_timeoutUwe Kleine-König2010-04-221-2/+1
| | | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clock.c: use USECOND and MSECONDMarc Kleine-Budde2009-12-031-2/+2
| | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clocK: Add ndelay functionSascha Hauer2008-08-131-0/+8
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* 002-clock-overflowNishanth Menon2008-06-051-1/+1
| | | | | | | | | | | | | | [Patch 02/17] U-Boot-V2: Handle case of clock rollover for get_time_ns get_time_ns does a simplistic delta = cycle_now - cycle_last. It is possible that the h/w counter reached max and reset back to 0. This patch addresses this issue by checking for rollover condition. NOTE 1: This does not guarentee that you cannot confuse get_time_ns. You could possibly wait for two reset cycles and then get a messed up value. To fix that we may need interrupt mode timer tick - something on the lines of jiffies on linux. NOTE 2: the question of cs->mask is not clear. if the mask is for the tick, then it is better done with (cycle_now & cs->mask) - (cs->cycle_last & cs->mask). Signed-off-by: Nishanth Menon<x0nishan@ti.com>
* export symbolsSascha Hauer2007-10-071-0/+4
|
* svn_rev_706Sascha Hauer2007-07-051-0/+26
| | | | add file headers
* svn_rev_683Sascha Hauer2007-07-051-6/+1
| | | | more cleanups, fix compiler warnings
* svn_rev_083Sascha Hauer2007-07-051-5/+5
| | | | mx31/move_include_asm-arm_arch-arm1136_to_arch-omap24xx.diff
* svn_rev_033Sascha Hauer2007-07-051-2/+8
| | | | change to clocksource api
* svn_rev_031Sascha Hauer2007-07-051-0/+84
add clocksource stuff from kernel and first implementation (imx) (WIP)