commit | 767456f1cf0d32d7f25753c84413517c89455980 | [log] [tgz] |
---|---|---|
author | Tony Luck <tony.luck@intel.com> | Sat Jan 16 15:06:09 2016 -0800 |
committer | Tony Luck <tony.luck@intel.com> | Sat Jan 16 15:06:09 2016 -0800 |
tree | 4acb7d3346727642665d544cab9558137997c368 | |
parent | 14ce72b257788f253fec6d99843c2d3cd94937aa [diff] |
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>