ARM: make cpu_is_v6_unaliagned() independent of CONFIG_PROC_FS
PATCH 1/1 ARM: make cpu_is_v6_unaliagned() independent of CONFIG_PROC_FS
From: Eric Miao <[email protected]>
Signed-off-by Eric Miao <[email protected]>
--- arch/arm/mm/alignment.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
arch/arm/mm/alignment.c +6 -6
@@ -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) {/*
Signature · 1 line
1.7.4.1
PATCH 1/1 ARM: make cpu_is_v6_unaliagned() independent of CONFIG_PROC_FS
Quoted 3 lines · Eric Miao
From: Eric Miao <[email protected]>
Signed-off-by Eric Miao <[email protected]>
Acked-by Nicolas Pitre <[email protected]>
Quoted 43 lines
--- arch/arm/mm/alignment.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)arch/arm/mm/alignment.c +6
-6@@ -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) {/* Signature · 7 lines
1.7.4.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel