Re: [PATCH] crypto/xor.c: use 2 pages for xor speed testing

2014-06-25 Thread Marek Vasut
On Tuesday, June 17, 2014 at 09:16:03 AM, Amos Kong wrote: [...] While looking at this code, can anyone explain to me why we have this stuff in crypto/xor.c please ? 135 #define xor_speed(templ)do_xor_speed((templ), b1, b2) 136 137 if (fastest) { 138

Re: [PATCH] crypto/xor.c: use 2 pages for xor speed testing

2014-06-17 Thread Amos Kong
On Thu, Jun 05, 2014 at 11:57:55PM +0200, Marek Vasut wrote: On Thursday, June 05, 2014 at 03:11:33 AM, Amos Kong wrote: In crypto/xor.c: calibrate_xor_blocks(), we allocated total 4 pages to do xor speed testing, the BENCH_SIZE is 1 page, and we skipped 2 pages when we set b2. It

Re: [PATCH] crypto/xor.c: use 2 pages for xor speed testing

2014-06-05 Thread Marek Vasut
On Thursday, June 05, 2014 at 03:11:33 AM, Amos Kong wrote: In crypto/xor.c: calibrate_xor_blocks(), we allocated total 4 pages to do xor speed testing, the BENCH_SIZE is 1 page, and we skipped 2 pages when we set b2. It seems that total 2 pages are enough without skipping 2 pages.

[PATCH] crypto/xor.c: use 2 pages for xor speed testing

2014-06-04 Thread Amos Kong
In crypto/xor.c: calibrate_xor_blocks(), we allocated total 4 pages to do xor speed testing, the BENCH_SIZE is 1 page, and we skipped 2 pages when we set b2. It seems that total 2 pages are enough without skipping 2 pages. Signed-off-by: Amos Kong ak...@redhat.com --- crypto/xor.c | 6 +++--- 1