2021-02-03 15:44:07

by Bhaskar Chowdhury

[permalink] [raw]
Subject: [PATCH] crypto: Fixed optimzation to optimization in the file crypto/xor.c


s/optimzation/optimization/

Signed-off-by: Bhaskar Chowdhury <[email protected]>
---
crypto/xor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/xor.c b/crypto/xor.c
index eacbf4f93990..c046d074f522 100644
--- a/crypto/xor.c
+++ b/crypto/xor.c
@@ -95,7 +95,7 @@ do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2)
for (i = 0; i < 3; i++) {
start = ktime_get();
for (j = 0; j < REPS; j++) {
- mb(); /* prevent loop optimzation */
+ mb(); /* prevent loop optimization */
tmpl->do_2(BENCH_SIZE, b1, b2);
mb();
}
--
2.26.2


2021-02-03 16:45:13

by Randy Dunlap

[permalink] [raw]
Subject: Re: [PATCH] crypto: Fixed optimzation to optimization in the file crypto/xor.c

On 2/3/21 7:39 AM, Bhaskar Chowdhury wrote:
>
> s/optimzation/optimization/
>
> Signed-off-by: Bhaskar Chowdhury <[email protected]>

Acked-by: Randy Dunlap <[email protected]>

Thanks.

> ---
> crypto/xor.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/crypto/xor.c b/crypto/xor.c
> index eacbf4f93990..c046d074f522 100644
> --- a/crypto/xor.c
> +++ b/crypto/xor.c
> @@ -95,7 +95,7 @@ do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2)
> for (i = 0; i < 3; i++) {
> start = ktime_get();
> for (j = 0; j < REPS; j++) {
> - mb(); /* prevent loop optimzation */
> + mb(); /* prevent loop optimization */
> tmpl->do_2(BENCH_SIZE, b1, b2);
> mb();
> }
> --
> 2.26.2
>


--
~Randy

2021-02-10 08:40:11

by Herbert Xu

[permalink] [raw]
Subject: Re: [PATCH] crypto: Fixed optimzation to optimization in the file crypto/xor.c

On Wed, Feb 03, 2021 at 09:09:33PM +0530, Bhaskar Chowdhury wrote:
>
> s/optimzation/optimization/
>
> Signed-off-by: Bhaskar Chowdhury <[email protected]>
> ---
> crypto/xor.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Patch applied. Thanks.
--
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt