diff options
author | Zheng Da <zhengda1936@gmail.com> | 2010-07-12 22:52:36 +0200 |
---|---|---|
committer | Zheng Da <zhengda1936@gmail.com> | 2010-07-12 22:52:36 +0200 |
commit | bb9fd2bd8ff770a003daaf14b8336da490fb19ed (patch) | |
tree | e026bb446997a16b04948b38df88f8b62b7deb60 /libdde_linux26/lib/src | |
parent | 723bd9a23048317687b7e6d76ec223f6f8457c85 (diff) |
use TSC to implement delay.
Diffstat (limited to 'libdde_linux26/lib/src')
-rw-r--r-- | libdde_linux26/lib/src/init/calibrate.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libdde_linux26/lib/src/init/calibrate.c b/libdde_linux26/lib/src/init/calibrate.c index ceb6c5e8..36747582 100644 --- a/libdde_linux26/lib/src/init/calibrate.c +++ b/libdde_linux26/lib/src/init/calibrate.c @@ -43,6 +43,11 @@ static unsigned long __cpuinit calibrate_delay_direct(void) unsigned long good_timer_count = 0; int i; + /* TODO It's not a very good place to call this function + * as TSC is very platform-dependant but calibrate_delay_direct + * isn't that much. */ + use_tsc_delay (); + if (read_current_timer(&pre_start) < 0 ) return 0; |