From patchwork Sat Sep 10 04:44:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Miao X-Patchwork-Id: 4012 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id BF2EF23FB4 for ; Sat, 10 Sep 2011 04:45:04 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id A0768A18409 for ; Sat, 10 Sep 2011 04:45:04 +0000 (UTC) Received: by fxd18 with SMTP id 18so4590825fxd.11 for ; Fri, 09 Sep 2011 21:45:04 -0700 (PDT) Received: by 10.223.74.89 with SMTP id t25mr1473018faj.65.1315629904470; Fri, 09 Sep 2011 21:45:04 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.11.8 with SMTP id m8cs34065lab; Fri, 9 Sep 2011 21:45:01 -0700 (PDT) Received: by 10.150.206.18 with SMTP id d18mr2605473ybg.352.1315629899740; Fri, 09 Sep 2011 21:44:59 -0700 (PDT) Received: from mail-yw0-f50.google.com (mail-yw0-f50.google.com [209.85.213.50]) by mx.google.com with ESMTPS id h2si256504ybi.77.2011.09.09.21.44.58 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 09 Sep 2011 21:44:59 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.y.miao@gmail.com designates 209.85.213.50 as permitted sender) client-ip=209.85.213.50; Authentication-Results: mx.google.com; spf=pass (google.com: domain of eric.y.miao@gmail.com designates 209.85.213.50 as permitted sender) smtp.mail=eric.y.miao@gmail.com; dkim=pass (test mode) header.i=@gmail.com Received: by ywm13 with SMTP id 13so153731ywm.37 for ; Fri, 09 Sep 2011 21:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=n8BiNne7cojlei9+D9J8ehrlLMrsWDBbTy6LXhY8puE=; b=lntUQiIR27mKp3GyQOK4YlXnWOYUJiWwQcnRbhFyMnOH5LDYPVOn4GQNvgt9jtdUVG A/KFnxXbxAixxdUW/LL2m+GA2uoChHUe6On5v5Sa0HeVghHz3esmZZg6ra1A4is0NsjJ CaBLLZBgn9+ZxqkJgh84RlaYySOZ+QhSF8CTc= Received: by 10.231.48.11 with SMTP id p11mr3346266ibf.57.1315629898498; Fri, 09 Sep 2011 21:44:58 -0700 (PDT) Received: from ycmiao-macbookpro.globalsuite.net (216-31-241-140.static-ip.telepacific.net [216.31.241.140]) by mx.google.com with ESMTPS id 37sm11258222iba.5.2011.09.09.21.44.56 (version=SSLv3 cipher=OTHER); Fri, 09 Sep 2011 21:44:57 -0700 (PDT) From: Eric Miao To: Cc: linux-arm-kernel , Eric Miao Subject: [PATCH] ARM: make cpu_is_v6_unaliagned() independent of CONFIG_PROC_FS Date: Fri, 9 Sep 2011 21:44:51 -0700 Message-Id: <1315629891-29102-1-git-send-email-eric.y.miao@gmail.com> X-Mailer: git-send-email 1.7.4.1 From: Eric Miao Signed-off-by: Eric Miao --- arch/arm/mm/alignment.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/mm/alignment.c b/arch/arm/mm/alignment.c index cfbcf8b..2170021 100644 --- a/arch/arm/mm/alignment.c +++ b/arch/arm/mm/alignment.c @@ -86,6 +86,12 @@ core_param(alignment, ai_usermode, int, 0600); #define UM_FIXUP (1 << 1) #define UM_SIGNAL (1 << 2) +/* Return true if and only if the ARMv6 unaligned access model is in use. */ +static bool cpu_is_v6_unaligned(void) +{ + return cpu_architecture() >= CPU_ARCH_ARMv6 && (cr_alignment & CR_U); +} + #ifdef CONFIG_PROC_FS static const char *usermode_action[] = { "ignored", @@ -96,12 +102,6 @@ static const char *usermode_action[] = { "signal+warn" }; -/* Return true if and only if the ARMv6 unaligned access model is in use. */ -static bool cpu_is_v6_unaligned(void) -{ - return cpu_architecture() >= CPU_ARCH_ARMv6 && (cr_alignment & CR_U); -} - static int safe_usermode(int new_usermode, bool warn) { /*