aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mm/alignment.c7
-rw-r--r--arch/arm/mm/mmu.c7
2 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mm/alignment.c b/arch/arm/mm/alignment.c
index 53e268fcae45..4cfefa20ee98 100644
--- a/arch/arm/mm/alignment.c
+++ b/arch/arm/mm/alignment.c
@@ -950,6 +950,13 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
950 return 0; 950 return 0;
951} 951}
952 952
953static int __init noalign_setup(char *__unused)
954{
955 set_cr(__clear_cr(CR_A));
956 return 1;
957}
958__setup("noalign", noalign_setup);
959
953/* 960/*
954 * This needs to be done after sysctl_init, otherwise sys/ will be 961 * This needs to be done after sysctl_init, otherwise sys/ will be
955 * overwritten. Actually, this shouldn't be in sys/ at all since 962 * overwritten. Actually, this shouldn't be in sys/ at all since
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
index d97cb2d8953a..ec57f792aed4 100644
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@ -186,13 +186,6 @@ static int __init early_ecc(char *p)
186early_param("ecc", early_ecc); 186early_param("ecc", early_ecc);
187#endif 187#endif
188 188
189static int __init noalign_setup(char *__unused)
190{
191 set_cr(__clear_cr(CR_A));
192 return 1;
193}
194__setup("noalign", noalign_setup);
195
196#ifndef CONFIG_SMP 189#ifndef CONFIG_SMP
197void adjust_cr(unsigned long mask, unsigned long set) 190void adjust_cr(unsigned long mask, unsigned long set)
198{ 191{