Home
last modified time | relevance | path

Searched hist:af1c0b55ca4c6303ce2c2d8789442421ddda2bc8 (Results 1 – 2 of 2) sorted by relevance

/haiku/src/system/kernel/lib/arch/arm/
H A DJamfileaf1c0b55ca4c6303ce2c2d8789442421ddda2bc8 Tue Sep 17 01:03:17 UTC 2013 Ithamar R. Adema <ithamar@upgrade-android.com> ARM: kernel: fix timer resolution and implement basic timekeeping.

The previously used method for programming the timer did not take
into account that our timespec is 64bit while the register we poke
it into is 32 bit. Since the PXA (SoC in Verdex target) has a limited
scale of resolution (us,ms,second) we dynamicly determine the one
that we can most closely match, and set that.

For f.ex. snooze to work however, we also need system_time to work.
The current implementation uses a system timer at microsecond
resolution to keep track of time.

Although the code is far from perfect, committing it now before
it gets lost, since I'm working on the infrastructure code
to properly factor out the SoC specific code out of the core
ARM architecture code (so the kernel can support more then
our poor old Verdex QEMU target ;))
/haiku/src/system/kernel/arch/arm/
H A Darch_timer.cppaf1c0b55ca4c6303ce2c2d8789442421ddda2bc8 Tue Sep 17 01:03:17 UTC 2013 Ithamar R. Adema <ithamar@upgrade-android.com> ARM: kernel: fix timer resolution and implement basic timekeeping.

The previously used method for programming the timer did not take
into account that our timespec is 64bit while the register we poke
it into is 32 bit. Since the PXA (SoC in Verdex target) has a limited
scale of resolution (us,ms,second) we dynamicly determine the one
that we can most closely match, and set that.

For f.ex. snooze to work however, we also need system_time to work.
The current implementation uses a system timer at microsecond
resolution to keep track of time.

Although the code is far from perfect, committing it now before
it gets lost, since I'm working on the infrastructure code
to properly factor out the SoC specific code out of the core
ARM architecture code (so the kernel can support more then
our poor old Verdex QEMU target ;))