genode/repos/os
Martin Stein 399e1586be timer: generic timer_ticks_to_us implementation
There are hardware timers whose frequency can't be expressed as
ticks-per-microsecond integer-value because only a ticks-per-millisecond
integer-value is precise enough. We don't want to use expensive
floating-point values here but nonetheless want to translate from ticks
to time with microseconds precision. Thus, we split the input in two and
translate both parts separately. This way, we can raise precision by
shifting the values to their optimal bit position. Afterwards, the results
are shifted back and merged together again.

As this algorithm is not so trivial anymore and used by at least three
timer drivers (base-hw/x86_64, base-hw/cortex_a9, timer/pit), move it to a
generic header to avoid redundancy.

Ref #2400
2017-08-28 16:49:49 +02:00
..
doc Remove obsolete RAM/CAP services from run scripts 2017-05-31 13:16:22 +02:00
include libports: Mesa 11.2.2 2017-08-28 16:49:43 +02:00
lib sd_card: cleanup driver library structure 2017-06-29 11:59:58 +02:00
recipes depot recipe for blk_cache 2017-08-28 16:49:44 +02:00
run uefi: adjust framebuffer.run to use fb_boot_drv 2017-08-28 16:49:47 +02:00
src timer: generic timer_ticks_to_us implementation 2017-08-28 16:49:49 +02:00
README API documentation refinements 2017-05-31 13:16:21 +02:00

This source-code repository contains genuine low-level OS components and
interfaces of Genode. It solely depends on the framework's base API.