summaryrefslogtreecommitdiffstats
path: root/include/clock.h
Commit message (Collapse)AuthorAgeFilesLines
* include: Add definitnion for HZAndrey Smirnov2019-02-181-0/+2
| | | | | | | Add definitnion for HZ to simplify porting Linux kernel code. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clocksource: allow to have multiple device from clock sourceJean-Christophe PLAGNIOL-VILLARD2017-03-091-1/+2
| | | | | | | | | use the one with the most priority. We can not select the clocksource at user level. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clock.h: include <types.h> under guard macroAntony Pavlov2015-10-221-2/+1
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/usb'Sascha Hauer2015-10-071-0/+1
|\
| * common: clock: introduce mdelay_non_interruptible()Peter Mamonov2015-10-021-0/+1
| | | | | | | | | | Signed-off-by: Peter Mamonov <pmamonov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | clock: remove duplicate xdelay declarationsSascha Hauer2015-09-231-2/+1
|/ | | | | | | | ndelay is declared in include/clock.h, udelay in include/common.h and mdelay in include/common.h and include/clock.h. Move them all to include/clock.h and remove duplicates. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clock: Add a variable with the first timestamp after startupSascha Hauer2014-09-301-0/+2
| | | | | | | For measuring the startup time it's useful to save the first timestamp after the clocksource has been registered. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clock: introduce non interruptible timeoutJean-Christophe PLAGNIOL-VILLARD2012-10-291-0/+1
| | | | | | | | | | | | | | is_timeout call poller_call if the timeout is >= 100us but on 1-wire bus we need to wait 500us and not more than 930us for the bus reset. So if the poller_call is caller we can not guarantee it. So for this introduce is_non_interruptible_timeout than we only wait. Use it for ndelay too. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clocksource: move the NSEC_PER_SEC constant to common headerAntony Pavlov2012-06-291-0/+2
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add a timeout polling loop convenience wrapperSascha Hauer2012-02-091-0/+19
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* shift and clocksourceCarlo Caione2011-06-221-0/+2
| | | | | | | Added clocks_calc_mult_shift() Signed-off-by: Carlo Caione <carlo.caione@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clocksource: import CLOCKSOURCE_MASK from the kernelJean-Christophe PLAGNIOL-VILLARD2010-11-291-0/+2
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clock.h: use types.h not linux/types.hMarc Kleine-Budde2009-12-031-1/+1
| | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Acked-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clock.h: uses uint?_t types, so include types.hMarc Kleine-Budde2009-11-231-0/+2
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* clocK: Add ndelay functionSascha Hauer2008-08-131-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* svn_rev_033Sascha Hauer2007-07-051-1/+8
| | | | change to clocksource api
* svn_rev_031Sascha Hauer2007-07-051-0/+29
add clocksource stuff from kernel and first implementation (imx) (WIP)