Thread (20 messages) flat view 20 messages, 6 authors, 2018-11-02
STALE2882d REVIEWED: 1 (0M)

Revision v1 of 4 in this series; 1 review trailer.

Revisions (4)
  1. v1 [diff vs current]
  2. v1 current
  3. v2 [diff vs current]
  4. v2 [diff vs current]

[PATCH 1/5] ARM: make lookup_processor_type() non-__init

From: Julien Thierry <hidden>
Date: 2018-09-20 09:07:17

Hi Russell,

On 19/09/18 10:48, Russell King wrote:
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 <redacted>
quoted hunk ↗ jump to hunk
Signed-off-by: Russell King <redacted>
---
  arch/arm/kernel/head-common.S | 6 +++---
  1 file 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 @@ ENDPROC(__mmap_switched)
  #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
-- 
Julien Thierry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help