ARM: move "noalign" command line option to alignment.c
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 13 Apr 2014 18:00:17 +0000 (19:00 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 2 Jun 2014 08:20:13 +0000 (09:20 +0100)
Keep all bits of alignment handling together.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/alignment.c
arch/arm/mm/mmu.c

index 53e268f..4cfefa2 100644 (file)
@@ -950,6 +950,13 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
        return 0;
 }
 
+static int __init noalign_setup(char *__unused)
+{
+       set_cr(__clear_cr(CR_A));
+       return 1;
+}
+__setup("noalign", noalign_setup);
+
 /*
  * This needs to be done after sysctl_init, otherwise sys/ will be
  * overwritten.  Actually, this shouldn't be in sys/ at all since
index d97cb2d..ec57f79 100644 (file)
@@ -186,13 +186,6 @@ static int __init early_ecc(char *p)
 early_param("ecc", early_ecc);
 #endif
 
-static int __init noalign_setup(char *__unused)
-{
-       set_cr(__clear_cr(CR_A));
-       return 1;
-}
-__setup("noalign", noalign_setup);
-
 #ifndef CONFIG_SMP
 void adjust_cr(unsigned long mask, unsigned long set)
 {