From bb9fd2bd8ff770a003daaf14b8336da490fb19ed Mon Sep 17 00:00:00 2001 From: Zheng Da Date: Mon, 12 Jul 2010 22:52:36 +0200 Subject: use TSC to implement delay. --- libdde_linux26/lib/src/init/calibrate.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libdde_linux26/lib/src') 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; -- cgit v1.2.3