clocks - Add fine-grained spin delay function via TSC
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 13 Jul 2009 05:12:50 +0000 (22:12 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 13 Jul 2009 05:12:50 +0000 (22:12 -0700)
commitd2412a2eacb9f42231c72200f25bf9604ed6f470
treec9b43fc46ab01bb78dfeb9f7fe35960bdebfee96
parentb20720b5191015783c5d4c26383307807e9c4862
clocks - Add fine-grained spin delay function via TSC

Add int64_t target = tsc_get_target(ns) and tsc_test_target(target).
See routines for details.  These functions are available when the system
supports an extremely fine-grained counter such as a TSC and may be used
to generate finely tuned delays.
sys/kern/kern_clock.c
sys/sys/time.h