Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp96011imj; Thu, 14 Feb 2019 16:07:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IaSY66+GpFxmEfHKjjys/E5UL8ykFub/v3S+qJdsXrA7ngRNAtcKa9SKb146mCNlgjQ+tUj X-Received: by 2002:a62:6204:: with SMTP id w4mr6922771pfb.5.1550189269405; Thu, 14 Feb 2019 16:07:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550189269; cv=none; d=google.com; s=arc-20160816; b=GROhQb7bdxJoM+fYLQh3JcThbVh0XdQtytzoUOXc7hnB0p+U57UJ1jW3yJXRqjospb rVWYZkfY2Lxdnyr9JfzpTb+bPjFqbU/Rc13DoC9R0Ab5W2ICkMW+BQkVz3Xs27Px9asy njFGG7zv4UZJqdPjFEycnEdn7ACaza+LCSo8/uEP0j3qjW6X3kEgDQVpNL0UQg+jhui+ 5/sUqrmDrcmMELtwotS7Hd39GOQW9cKo1ncCv6nHX8UoSuDb2BQNSR85YWdTLz0llbfy 7JikTWzKBfmNH6pNGc7bLPCGogdM91ZGZRhr83SMxeT5D/MRJeLY0JC1qiQYMgQnY8ZM sfkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=A+x6L8QagNW3CuUu/ag15Af/EDUw9eLjI6Wngv/1/8I=; b=wvUispfe8gnYTI4rkG2p4LFwTpwLxykw0TErYowad2Ywjm5IqKq1vZGrVKbjvt1BsN 6WDuAuswRp9ZxuBQQ2EgXFlOI7gxE3Rg4xV2beDnACkw7a3jM5V+1MzbXt8/BgIr8Iqs JqaIZfWJGDBQu5nRhyDYBd1IHj8Z7gF9jn66milgeTlUliu7JFr73C1F2kIv/PyFn7zW 5Wxva28G42OmypNYflOyldTZu6mhUgHxGaP82ACTeN01kHWwnDgkbnOuzYgPkIWvdIVP dAw8wUfxkBNspOfCrilF/+9W3nehOGRrWvNyqGezzU7zAz/lkLoNWeyWb7wS8qT55K/s 3yTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dh8U3TBw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i67si3723519pfc.119.2019.02.14.16.07.27; Thu, 14 Feb 2019 16:07:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dh8U3TBw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439412AbfBNOue (ORCPT + 99 others); Thu, 14 Feb 2019 09:50:34 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:45394 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439329AbfBNOtr (ORCPT ); Thu, 14 Feb 2019 09:49:47 -0500 Received: by mail-qt1-f196.google.com with SMTP id e5so7052715qtr.12 for ; Thu, 14 Feb 2019 06:49:46 -0800 (PST) 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=dh8U3TBwa38qeMRCMFTA1fUE5EDhj2RU58iy0u72q2fpD7O7mLoTkPzIrhtqN37929 6a6Cm+iL5S93vb0oLM38HX6kVjNOvkoUGMqaZtB/Y/HTUcfWPpupzTxEhA/WviL7bk+1 kTjIhuJ3IRheJJpvOnwAno/sTDLlnZHgZ62SAdVl/kgfZWVzchOX1krmLFkNCxSlA8eD oSHZmRg5ObAr0TpeM+fNdhN/DSI1M60JZzptaw+FcfgXbfrNb1kl80guxgNPRk/MRQYo qWRRoTk3stRoFDS1rrrzYrfmdRIj9OEDropr0nRDh6k2oU8Qox+6y9SiWCG8/Ab2OTTw vxWw== 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=cpHvA/HTCNWf58otsWCRX8yTLw+81AAuYOvr7l/x9ni9rgpQpoibLYpqi0kqEyercl T5TdZPcZDSz05//C33ORIsTOVs9YL6vFqoA+H693oSKvEmLUr8hBK73Gu/bO8xELKuPm ZL8zUoQZg2ebVxfTEcJW0XlxyUm4F4ca7AakIXsIH7lWbekPbVMWIbp6Dv9RGqqbe0Co RSQV/wH/pDCtXBRd7Ahen2sL1sEy4tzch63innnM2fI76J80RxpURwjXHDHYW/wEOpdZ hOwk8m/l8YrzP6kRIteglpYsgWTj0KTKDb7OVGBiy2rLPwnhR05/qduEY8pYqDRnce5t PNYw== X-Gm-Message-State: AHQUAuYmkCGQwvsksxdsg2c2MTKYVOTeCL4zppLcPpLNUWzAIsPHTAHZ uXAfqfAD8gbcWMpSqMRx3ks1ww== X-Received: by 2002:ac8:162b:: with SMTP id p40mr3259244qtj.326.1550155786555; Thu, 14 Feb 2019 06:49:46 -0800 (PST) Received: from localhost.localdomain (pool-72-71-243-63.cncdnh.fast00.myfairpoint.net. [72.71.243.63]) by smtp.googlemail.com with ESMTPSA id k66sm1498919qkc.25.2019.02.14.06.49.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 06:49:45 -0800 (PST) From: David Long To: stable@vger.kernel.org, Russell King - ARM Linux , Florian Fainelli , Julien Thierry , Tony Lindgren , Marc Zyngier , Greg KH , Mark Rutland Cc: Will Deacon , Mark Brown , linux-kernel@vger.kernel.org Subject: [PATCH 4.9 10/16] ARM: make lookup_processor_type() non-__init Date: Thu, 14 Feb 2019 09:49:24 -0500 Message-Id: <20190214144930.27539-11-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190214144930.27539-1-dave.long@linaro.org> References: <20190214144930.27539-1-dave.long@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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(-) 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 -- 2.17.1