From patchwork Thu Jan 10 17:51:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Long X-Patchwork-Id: 155255 Delivered-To: patches@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2176284jaa; Thu, 10 Jan 2019 09:52:09 -0800 (PST) X-Received: by 2002:a0c:f648:: with SMTP id s8mr10807672qvm.122.1547142729514; Thu, 10 Jan 2019 09:52:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547142729; cv=none; d=google.com; s=arc-20160816; b=lRIvR+RCKfjiWZvR42urwuvwIKRE0tjrA4Fvrc41M1UVWY+1me7wCKOQWLhHyw7FoF Zs2NJmDWFC0S8SU58aGDTZVM6Je0YvhW3X07wG+Vd/T5WHl+iRGiDe7pHf+oUWRX1zcF 0RcKLirxxt8TWcvW6UYlY7R5feP2WDWUsbFltmhsnxM89vOstq8pL8W6pWjsHR1n13RT vlbNQP/B0/Xm4KVPeSsm0kXdoRR7zUu/xkiN4Xd609WezFjaEc6VlFy5kUUQ0A1LdoNq RfihnspEELtgQDT85Le6SUWpfQRM3yvJX94mUWWtQqncWLCMbAv9B94tsBgAiXaeDgZ1 jI5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=A+x6L8QagNW3CuUu/ag15Af/EDUw9eLjI6Wngv/1/8I=; b=YBUwbEgJjlIz/Goppi79VPs+BF9sBtx0MSdXzg1tRwNAAYzEnjsx4lrm0qXxmpz6Pe avP1N/vKkt/AxDVO/HZY/vXxiXQeK3PdKTtNO5me/2nt5eV1xpkY3pskslYZ9QZTZPb4 aDaIF50tNCVyrhjB8awjrUirzjBsDTI0pF2Efyhd9QLI4vpG0V9zbltuXgxWoCyKzK9e OPqVMjkE015WluoXySfXwWJMAOOHBuGuS3/7+QSsGl63x0D9kEJc4vBuCJgm1Dhu7F53 hwK+AFEYFajlRbX88bkBX8GXL0I9xADg/K3QWXbQS6M8ii0gyaURAa7VFiBhaizSJNvx l5cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iOec7LlV; spf=pass (google.com: domain of dave.long@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dave.long@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 41sor72302252qtw.64.2019.01.10.09.52.09 for (Google Transport Security); Thu, 10 Jan 2019 09:52:09 -0800 (PST) Received-SPF: pass (google.com: domain of dave.long@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iOec7LlV; spf=pass (google.com: domain of dave.long@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dave.long@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=A+x6L8QagNW3CuUu/ag15Af/EDUw9eLjI6Wngv/1/8I=; b=iOec7LlVtZKClR2PsZIWbsHBoAjm6XT6FYQ1cOM2SMVltWl6SfRoSUOayDdheerqXv e2OV2MYuLLDWk5Vu6R/W2TRM4XEnCgSIAO6BvOavE+P8fVZYCN6BqEL7u+aovaaE+gAH qIICSe1kOzB3zha3gfR7JK1bBH7TcgX4Bll/Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=A+x6L8QagNW3CuUu/ag15Af/EDUw9eLjI6Wngv/1/8I=; b=Oi+wzXQq9D1FI4cT5At17FUAg1dBWXLr0uvikoSgWzZ4SYro37PhNfQl90v9qByMPc pdv53FSZSBoZij5hE+kp0xVFrTqUlnoooqQeJe//hjZdntU7u9OcOLhTsOmdSOrcYYg1 o6GmBlae5IZpvP9PYzRGe1UBzvmbAkU7kPLK1BsZyH5W5cHKXgViJJj92Ov87TexmMZ7 kpoeiMgnVHnsjf+TTum2FY38Cdv0GN2Hu/SEvmZg5eBkww3AvcORh789z0kz5i4YBFjP t9GettSg+NTRf9+VVORjTmx78ElVR30uERTj2o4nupN116RC4UAsCaNu5EXS5PyRrRLm a1bA== X-Gm-Message-State: AJcUukemKyRgZKfrX0FMhs8lJo0fPLtMAL3R7Is3b2Pfm1mkHhtCTQi1 Ud8Vm3JrAB4ee5mVlHSkEo2eBjjK X-Google-Smtp-Source: ALg8bN79BC/bpyBzj6JwZtu80nsQKXs/nAeHwBMZuf+3KJpY+XmnPEPkkSc07TtqIlJGwE3wIv7ODg== X-Received: by 2002:aed:3907:: with SMTP id l7mr10776681qte.65.1547142729279; Thu, 10 Jan 2019 09:52:09 -0800 (PST) Return-Path: Received: from localhost.localdomain (pool-72-71-243-63.cncdnh.fast00.myfairpoint.net. [72.71.243.63]) by smtp.googlemail.com with ESMTPSA id b8sm41815904qka.79.2019.01.10.09.52.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jan 2019 09:52:08 -0800 (PST) From: David Long To: stable@vger.kernel.org, Russell King - ARM Linux , Florian Fainelli , Julien Thierry , Tony Lindgren , Marc Zyngier , Mark Rutland Cc: Greg KH , Mark Brown Subject: [PATCH 4.14 11/17] ARM: make lookup_processor_type() non-__init Date: Thu, 10 Jan 2019 12:51:44 -0500 Message-Id: <20190110175150.5239-12-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190110175150.5239-1-dave.long@linaro.org> References: <20190110175150.5239-1-dave.long@linaro.org> From: Russell King Commit 899a42f836678a595f7d2bc36a5a0c2b03d08cbc upstream. 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 Signed-off-by: Russell King Signed-off-by: David A. Long --- arch/arm/kernel/head-common.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/arch/arm/kernel/head-common.S b/arch/arm/kernel/head-common.S index 8733012d231f..7e662bdd5cb3 100644 --- a/arch/arm/kernel/head-common.S +++ b/arch/arm/kernel/head-common.S @@ -122,6 +122,9 @@ __mmap_switched_data: .long init_thread_union + THREAD_START_SP @ sp .size __mmap_switched_data, . - __mmap_switched_data + __FINIT + .text + /* * This provides a C-API version of __lookup_processor_type */ @@ -133,9 +136,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