commit | a250edd0678ac6aef34bfbd01423a7b87a1d5f8d | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Tue Oct 17 12:11:44 2017 -0600 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Oct 17 12:11:44 2017 -0600 |
tree | d50b43955067fad087627caa605d539928d7f52e | |
parent | c13a60ce72aaf5b07b93977ab86e7522d167ec28 [diff] |
gettime: improve cpu clock test We're missing a synchronization before reading and comparing with the current *t->seq in the loop. Rewrite the loop to use compare-and-exchange for the increment, and ensure that we have the proper synchronization inserted. This should both be faster and more reliable. Signed-off-by: Jens Axboe <axboe@kernel.dk>