aboutsummaryrefslogtreecommitdiffstats
path: root/sharplhf00l04.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-06-03 21:48:13 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-06-03 21:48:13 +0000
commitb929d110c1ef02bced974e1fe8ca7b3561ed87fa (patch)
treef10a8c278c45e8bde5afd2b92434612af1afec4c /sharplhf00l04.c
parent301703bc5b84d5e4a38298469ef00fdfe9aaa6a2 (diff)
downloadflashrom-b929d110c1ef02bced974e1fe8ca7b3561ed87fa.tar.gz
flashrom-b929d110c1ef02bced974e1fe8ca7b3561ed87fa.tar.bz2
flashrom-b929d110c1ef02bced974e1fe8ca7b3561ed87fa.zip
Measure OS timer precision to refine calibration
Do not trust the OS at all and measure timer precision before calibrating the delay loop and use that measurement to get reasonable precision for our own delay code. Print a measurement for a delay of 4x the OS timer resolution. Be precise about how bad the deviation was if we had to recalculate. Tested on Windows XP, 32 bit, built using MinGW by Uwe. Tested on FreeDOS v1.0 Final, 32bit, built using DJGPP 4.3.2 by Idwer. Corresponding to flashrom svn r1028. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Idwer Vollering <vidwer+lists.flashrom@gmail.com>
Diffstat (limited to 'sharplhf00l04.c')
0 files changed, 0 insertions, 0 deletions