Files
xemu/include/hw
Peter Maydell cd3a53b727 clock: Add clock_ns_to_ticks() function
Add a clock_ns_to_ticks() function which does the opposite of
clock_ticks_to_ns(): given a duration in nanoseconds, it returns the
number of clock ticks that would happen in that time.  This is useful
for devices that have a free running counter register whose value can
be calculated when it is read.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Reviewed-by: Hao Wu <wuhaotsh@google.com>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210219144617.4782-4-peter.maydell@linaro.org
2021-03-08 17:20:01 +00:00
..
2021-01-12 21:19:02 +00:00
2020-10-27 11:10:44 +00:00
…
2020-12-10 17:16:44 +01:00
2021-02-11 11:50:14 +00:00
2021-01-19 10:20:29 +11:00
…
2021-02-21 18:41:04 +01:00
2021-03-05 15:17:34 +00:00
2020-09-09 09:27:09 -04:00
2020-09-09 09:27:09 -04:00
…
2020-09-09 09:27:09 -04:00
2020-12-15 12:53:13 -05:00
2020-09-09 09:27:09 -04:00
…
…
…
…
2020-09-09 09:27:09 -04:00
2020-09-09 09:27:09 -04:00
2020-09-18 14:12:32 -04:00
2020-09-09 09:27:09 -04:00
2020-09-09 09:27:09 -04:00
2021-01-22 14:51:35 +01:00
2020-09-09 09:27:09 -04:00