From patchwork Tue Dec 17 20:34:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 3365211 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9AA28C0D4A for ; Tue, 17 Dec 2013 20:34:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B9ED7203AE for ; Tue, 17 Dec 2013 20:34:55 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B8FAA203AD for ; Tue, 17 Dec 2013 20:34:54 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vt1Lq-0008MG-Qm; Tue, 17 Dec 2013 20:34:46 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vt1Lo-0001Z0-EH; Tue, 17 Dec 2013 20:34:44 +0000 Received: from mail-qa0-f53.google.com ([209.85.216.53]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vt1Lm-0001Xh-2w for linux-arm-kernel@lists.infradead.org; Tue, 17 Dec 2013 20:34:43 +0000 Received: by mail-qa0-f53.google.com with SMTP id j5so3012317qaq.19 for ; Tue, 17 Dec 2013 12:34:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version:content-type; bh=Tg9XlFlW+XhW5QEfLztMRrwWnre6r++MMNj9PnuEV7c=; b=BmshilkH9nlncojzjzGQJ5/KNGwh7DABRtdKUzmLk136BURFwXdy+Cuo+ZHZ9xWSec tNcp/X9IF0Ze5v2U6BcLi2cDET1IZan40eolNdcC33AlVvVATKgYI2JI15SmGvrTDE4s 8xlwxWwCKvCZH7O2bt1wiXC2pHIaEe+uI3SA9I26NhrM2VF42zAlFmNHq8W2yVc7dp0u OIqcdM/kJwexVlFwqFUXV04ytEoV7QfcN2byn4HqpD33etRAMNllt1bYpFagqlNUGUSE PjRH0HNHr6pdanGtEl7zl9eV0e3tVedqMy9aQ2NeLGlULAeOJy1IASqzG0vepzkdeb/V t20Q== X-Gm-Message-State: ALoCoQmUD43gCor3hJJbm3lpO03I7P4wQCAipXD4L21UNRcwJOi+7VVJ5xVOjr6k0Uzroo1AzKOV X-Received: by 10.224.136.136 with SMTP id r8mr47190015qat.0.1387312460448; Tue, 17 Dec 2013 12:34:20 -0800 (PST) Received: from xanadu.home (modemcable177.143-130-66.mc.videotron.ca. [66.130.143.177]) by mx.google.com with ESMTPSA id n14sm59772350qav.8.2013.12.17.12.34.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Dec 2013 12:34:19 -0800 (PST) Date: Tue, 17 Dec 2013 15:34:18 -0500 (EST) From: Nicolas Pitre To: Will Deacon Subject: Re: [PATCH 2/2] ARM: kconfig: select HAVE_EFFICIENT_UNALIGNED_ACCESS for CPUv6+ && MMU In-Reply-To: <1387282577-2753-2-git-send-email-will.deacon@arm.com> Message-ID: References: <1387282577-2753-1-git-send-email-will.deacon@arm.com> <1387282577-2753-2-git-send-email-will.deacon@arm.com> User-Agent: Alpine 2.10 (LFD 1266 2009-07-14) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131217_153442_166932_3D1EDBC8 X-CRM114-Status: GOOD ( 13.78 ) X-Spam-Score: -2.6 (--) Cc: linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Tue, 17 Dec 2013, Will Deacon wrote: > Modern ARM CPUs can perform efficient unaligned memory accesses in > hardware and this feature is relied up on by code such as the dcache > word-at-a-time name hashing. > > This patch selects HAVE_EFFICIENT_UNALIGNED_ACCESS for these cores and > reworks the kconfig select logic for DCACHE_WORD_ACCESS to use the new > symbol. > > Signed-off-by: Will Deacon This symbol could be used in some more places too. For example this would make the code a bit clearer: Nicolas Signed-off-by: Nicolas Pitre diff --git a/arch/arm/include/asm/uaccess.h b/arch/arm/include/asm/uaccess.h index 72abdc541f..12c3a5decc 100644 --- a/arch/arm/include/asm/uaccess.h +++ b/arch/arm/include/asm/uaccess.h @@ -19,7 +19,7 @@ #include #include -#if __LINUX_ARM_ARCH__ < 6 +#ifndef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS #include #else #define __get_user_unaligned __get_user