Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 175352a5 authored by Russell King's avatar Russell King
Browse files

ARM: move "noalign" command line option to alignment.c



Keep all bits of alignment handling together.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent b4b20ad8
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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
+0 −7
Original line number Diff line number Diff line
@@ -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)
{