freebsd-nq/sys/arm
Konstantin Belousov aea810386d Implement mechanism to export some kernel timekeeping data to
usermode, using shared page.  The structures and functions have vdso
prefix, to indicate the intended location of the code in some future.

The versioned per-algorithm data is exported in the format of struct
vdso_timehands, which mostly repeats the content of in-kernel struct
timehands. Usermode reading of the structure can be lockless.
Compatibility export for 32bit processes on 64bit host is also
provided. Kernel also provides usermode with indication about
currently used timecounter, so that libc can fall back to syscall if
configured timecounter is unknown to usermode code.

The shared data updates are initiated both from the tc_windup(), where
a fast task is queued to do the update, and from sysctl handlers which
change timecounter. A manual override switch
kern.timecounter.fast_gettime allows to turn off the mechanism.

Only x86 architectures export the real algorithm data, and there, only
for tsc timecounter. HPET counters page could be exported as well, but
I prefer to not further glue the kernel and libc ABI there until
proper vdso-based solution is developed.

Minimal stubs neccessary for non-x86 architectures to still compile
are provided.

Discussed with:	bde
Reviewed by:	jhb
Tested by:	flo
MFC after:	1 month
2012-06-22 07:06:40 +00:00
..
arm Fix a global shadowing problem when LINUX_BOOT_ABI was defined. 2012-06-15 07:26:39 +00:00
at91 Fix a stray debug that I committed accidentally years ago... 2012-06-22 06:44:22 +00:00
compile
conf These options are unused, and can safely be retired. 2012-06-15 08:01:16 +00:00
econa More Linux boot support. Create arm_dump_avail_init() to initialize 2012-06-14 04:18:56 +00:00
include Implement mechanism to export some kernel timekeeping data to 2012-06-22 07:06:40 +00:00
mv More Linux boot support. Create arm_dump_avail_init() to initialize 2012-06-14 04:18:56 +00:00
s3c2xx0 Remove stray line from merge. 2012-06-15 16:50:32 +00:00
sa11x0 Modify all the arm platform files to call parse_boot_param passing in 2012-06-14 04:00:30 +00:00
xscale Fix missing straggler for the move to parse_boot_param() 2012-06-14 18:37:00 +00:00