]> git.karo-electronics.de Git - karo-tx-linux.git/commit
crypto: wait for a full jiffy in do_xor_speed
authorJim Kukunas <james.t.kukunas@linux.intel.com>
Thu, 12 Apr 2012 06:12:21 +0000 (16:12 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 12 Apr 2012 06:12:21 +0000 (16:12 +1000)
commit8f862ecb0f9e6649dfffc33e33f1b7e819fae8f8
tree7a0ae6fde132af97883b5f7126571a3cdcab7ef4
parent3efb46759f02d53c15c9890cac57cd65c80de7f2
crypto: wait for a full jiffy in do_xor_speed

In the existing do_xor_speed(), there is no guarantee that we actually
run do_2() for a full jiffy. We get the current jiffy, then run do_2()
until the next jiffy.

Instead, let's get the current jiffy, then wait until the next jiffy
to start our test.

Signed-off-by: Jim Kukunas <james.t.kukunas@linux.intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
crypto/xor.c