Re: [PATCH 1/2] powerpc: Add 64bit optimised memcmp
From: Anton Blanchard <hidden>
Date: 2015-01-21 12:06:40
From: Anton Blanchard <hidden>
Date: 2015-01-21 12:06:40
Hi Arnd,
Would it help to also add a way for an architecture to override memcmp_pages() with its own implementation? That way you could skip the unaligned part, hardcode the loop counter and avoid the preempt_disable() in kmap_atomic().
Good idea. We could also have a generic implementation that did long comparisons, so everyone would get a decent speed up. Anton