arm64: mm: place __cpu_setup in .text
authorMark Rutland <mark.rutland@arm.com>
Fri, 11 Dec 2015 11:04:31 +0000 (11:04 +0000)
committerAlex Shi <alex.shi@linaro.org>
Thu, 20 Oct 2016 08:23:50 +0000 (16:23 +0800)
We drop __cpu_setup in .text.init, which ends up being part of .text.
The .text.init section was a legacy section name which has been unused
elsewhere for a long time.

The ".text.init" name is misleading if read as a synonym for
".init.text". Any CPU may execute __cpu_setup before turning the MMU on,
so it should simply live in .text.

Remove the pointless section assignment. This will leave __cpu_setup in
the .text section.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit f00083cae331e5d3eecade6b4fdc35d0825e73ef)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/mm/proc.S

index 18201e9e8cc71c22d017a9573cf722bdab63de74..3a44efb8d4950ca64cfbf3623d45d5bb9daa8427 100644 (file)
@@ -152,8 +152,6 @@ alternative_else
 alternative_endif
 ENDPROC(cpu_do_switch_mm)
 
-       .section ".text.init", #alloc, #execinstr
-
 /*
  *     __cpu_setup
  *