All of lore.kernel.org
 help / color / mirror / Atom feed
From: rmk+kernel@armlinux.org.uk (Russell King)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/5] ARM: make lookup_processor_type() non-__init
Date: Tue, 06 Nov 2018 12:38:50 +0000	[thread overview]
Message-ID: <E1gK0d8-0007Lp-Ux@rmk-PC.armlinux.org.uk> (raw)
In-Reply-To: <20181106123700.GA30658@n2100.armlinux.org.uk>

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>
---
 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
-- 
2.7.4

  parent reply	other threads:[~2018-11-06 12:38 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-06 12:37 [PATCH v2 0/5] Spectre big.Little updates Russell King - ARM Linux
2018-11-06 12:38 ` [PATCH 1/5] ARM: make lookup_processor_type() non-__init Russell King
2018-11-06 12:38 ` Russell King [this message]
2018-11-06 12:38 ` [PATCH v2 2/5] ARM: split out processor lookup Russell King
2018-11-06 12:39 ` [PATCH v2 3/5] ARM: clean up per-processor check_bugs method call Russell King
2018-11-06 12:39 ` [PATCH v2 4/5] ARM: add PROC_VTABLE and PROC_TABLE macros Russell King
2018-11-06 12:39 ` [PATCH v2 5/5] ARM: spectre-v2: per-CPU vtables to work around big.Little systems Russell King
2018-11-07 17:42   ` Julien Thierry
2018-12-06  9:32   ` Marek Szyprowski
2018-12-06 10:00     ` Russell King - ARM Linux
2018-12-06 10:24       ` Krzysztof Kozlowski
2018-12-06 12:39         ` Russell King - ARM Linux
2018-12-06 13:54           ` Krzysztof Kozlowski
2018-12-06 14:07             ` Russell King - ARM Linux
2018-12-06 14:30               ` Krzysztof Kozlowski
2018-12-06 14:37                 ` Russell King - ARM Linux
2018-12-06 15:03                   ` Krzysztof Kozlowski
2018-12-06 15:31                     ` Russell King - ARM Linux
2018-12-06 15:54                       ` Marek Szyprowski
2018-12-06 15:58                       ` Krzysztof Kozlowski
2018-12-07  9:11                         ` Ard Biesheuvel
2018-12-07 10:37                           ` Russell King - ARM Linux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1gK0d8-0007Lp-Ux@rmk-PC.armlinux.org.uk \
    --to=rmk+kernel@armlinux.org.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.