Don't wait for a fixed interval for CMCIs to be counted

Instead of hard coding a fixed large time to sleep before checking how
many CMCIs were logged, just sleep in 100us increments until we see at least
the expected number. Give up waiting after 1000 such rechecks. If we blocked
for any more than 100us, then report the actual time.

Original patch by Carl Sapp. Modified to use gettimeofday() to report actual delay.

Signed-off-by: Tony Luck <tony.luck@intel.com>
1 file changed