aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2014-04-13 14:00:17 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-06-02 04:20:13 -0400
commit175352a51cfc275b8590d27be6fdd4b14f416c32 (patch)
treebeb35952c2bc8c9d2be6d304e1150f574ead620e /arch/arm
parentb4b20ad881f5a5c19ae9199547ddbb00fa4825eb (diff)
ARM: move "noalign" command line option to alignment.c
Keep all bits of alignment handling together. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-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{