]> Zhao Yanbai Git Server - minix.git/commit
libsys: refactor frclock api 52/352/2
authorThomas Veerman <thomas@minix3.org>
Thu, 21 Feb 2013 16:02:42 +0000 (17:02 +0100)
committerThomas Veerman <thomas@minix3.org>
Fri, 22 Feb 2013 13:08:21 +0000 (13:08 +0000)
commit2b793e494546725ea198cbf24a1d7c36ebcc3cd7
tree8aab73c95f60ce971b9016873cee7a90e5c6eae3
parent4d09b8408af599f31eade69585c672b6106de7ee
libsys: refactor frclock api

Make the frclock functions similar to the tsc utility functions. This
way, we can call frclock functions from the framebuffer driver which
will use frclock on ARM and tsc on X86.

Also, frclock_64_to_micros computed seconds, not microseconds

Change-Id: I6718ae0fb7db050794f6f032205923e1a32dc1ac
include/minix/sysutil.h
lib/libsys/arch/earm/frclock_util.c
lib/libsys/arch/earm/spin.c
lib/libsys/arch/i386/frclock_util.c [new file with mode: 0644]
lib/libsys/arch/i386/tsc_util.c