projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branches 'acpi-scan', 'acpi-properties' and 'acpi-platform'
[linux-2.6-microblaze.git]
/
crypto
/
xor.c
diff --git
a/crypto/xor.c
b/crypto/xor.c
index
eacbf4f
..
8f899f8
100644
(file)
--- a/
crypto/xor.c
+++ b/
crypto/xor.c
@@
-107,6
+107,8
@@
do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2)
preempt_enable();
// bytes/ns == GB/s, multiply by 1000 to get MB/s [not MiB/s]
+ if (!min)
+ min = 1;
speed = (1000 * REPS * BENCH_SIZE) / (unsigned int)ktime_to_ns(min);
tmpl->speed = speed;