Skip to content

Commit

Permalink
ARM: move "noalign" command line option to alignment.c
Browse files Browse the repository at this point in the history
Keep all bits of alignment handling together.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed Jun 2, 2014
1 parent b4b20ad commit 175352a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 7 additions & 0 deletions arch/arm/mm/alignment.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions arch/arm/mm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 175352a

Please sign in to comment.