]> git.baikalelectronics.ru Git - kernel.git/commit
[CRYPTO]: Use CPU cycle counters in tcrypt
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 22 Jun 2005 20:29:03 +0000 (13:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jun 2005 20:29:03 +0000 (13:29 -0700)
commite28d83d6f9a5cf6624f460f86078848533d4ed83
treef3728d31d288746b85cd50883648a078c42b1850
parent2c72f85139142a66df4602b5a37e371edf94d3e5
[CRYPTO]: Use CPU cycle counters in tcrypt

After using this facility for a while to test my changes to the
cipher crypt() layer, I realised that I should've listend to Dave
and made this thing use CPU cycle counters :) As it is it's too
jittery for me to feel safe about relying on the results.

So here is a patch to make it use CPU cycles by default but fall
back to jiffies if the user specifies a non-zero sec value.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
crypto/tcrypt.c