From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 9F5711A0DF0 for ; Wed, 21 Jan 2015 23:06:40 +1100 (AEDT) Date: Wed, 21 Jan 2015 23:06:39 +1100 From: Anton Blanchard To: Arnd Bergmann Subject: Re: [PATCH 1/2] powerpc: Add 64bit optimised memcmp Message-ID: <20150121230639.081d6dcd@kryten> In-Reply-To: <3008920.kfIvkVJRyU@wuerfel> References: <1421803659-10678-1-git-send-email-anton@samba.org> <3008920.kfIvkVJRyU@wuerfel> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linuxppc-dev@lists.ozlabs.org, paulus@samba.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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