Whamcloud - gitweb
LU-5443 libcfs: replace direct HZ access with kernel APIs
[fs/lustre-release.git] / libcfs / libcfs / linux / linux-crypto.c
index c694aab..84727aa 100644 (file)
@@ -310,7 +310,8 @@ static void cfs_crypto_performance_test(enum cfs_crypto_hash_alg hash_alg)
        memset(buf, 0xAD, PAGE_SIZE);
        kunmap(page);
 
-       for (start = jiffies, end = start + HZ, bcount = 0;
+       for (start = jiffies, end = start + msecs_to_jiffies(MSEC_PER_SEC),
+            bcount = 0;
             time_before(jiffies, end) && err == 0; bcount++) {
                struct cfs_crypto_hash_desc *hdesc;
                int i;