mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
ARM: remove CPU_CP15 conditional from alignment.c
alignment.c will not be built unless CPU_CP15 is set: config CPU_CP15 bool config CPU_CP15_MMU bool select CPU_CP15 config ALIGNMENT_TRAP bool depends on CPU_CP15_MMU So there's no point having conditionals on CPU_CP15 within this code. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
c6e13600d3
commit
3cb099f089
1 changed files with 0 additions and 2 deletions
|
@ -974,12 +974,10 @@ static int __init alignment_init(void)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_CPU_CP15
|
|
||||||
if (cpu_is_v6_unaligned()) {
|
if (cpu_is_v6_unaligned()) {
|
||||||
set_cr(__clear_cr(CR_A));
|
set_cr(__clear_cr(CR_A));
|
||||||
ai_usermode = safe_usermode(ai_usermode, false);
|
ai_usermode = safe_usermode(ai_usermode, false);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
hook_fault_code(FAULT_CODE_ALIGNMENT, do_alignment, SIGBUS, BUS_ADRALN,
|
hook_fault_code(FAULT_CODE_ALIGNMENT, do_alignment, SIGBUS, BUS_ADRALN,
|
||||||
"alignment exception");
|
"alignment exception");
|
||||||
|
|
Loading…
Reference in a new issue