summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2018-07-19 12:42:36 +0200
committerRussell King <rmk+kernel@armlinux.org.uk>2018-11-12 11:51:01 +0100
commit899a42f836678a595f7d2bc36a5a0c2b03d08cbc (patch)
tree53b1735fb2e6e89ddd633c4a46b9a5536f6f4768
parentARM: 8810/1: vfp: Fix wrong assignement to ufp_exc (diff)
downloadlinux-899a42f836678a595f7d2bc36a5a0c2b03d08cbc.tar.xz
linux-899a42f836678a595f7d2bc36a5a0c2b03d08cbc.zip
ARM: make lookup_processor_type() non-__init
Move lookup_processor_type() out of the __init section so it is callable from (eg) the secondary startup code during hotplug. Reviewed-by: Julien Thierry <julien.thierry@arm.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
-rw-r--r--arch/arm/kernel/head-common.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/kernel/head-common.S b/arch/arm/kernel/head-common.S
index 6e0375e7db05..997b02302c31 100644
--- a/arch/arm/kernel/head-common.S
+++ b/arch/arm/kernel/head-common.S
@@ -145,6 +145,9 @@ __mmap_switched_data:
#endif
.size __mmap_switched_data, . - __mmap_switched_data
+ __FINIT
+ .text
+
/*
* This provides a C-API version of __lookup_processor_type
*/
@@ -156,9 +159,6 @@ ENTRY(lookup_processor_type)
ldmfd sp!, {r4 - r6, r9, pc}
ENDPROC(lookup_processor_type)
- __FINIT
- .text
-
/*
* Read processor ID register (CP#15, CR0), and look up in the linker-built
* supported processor list. Note that we can't use the absolute addresses