From patchwork Thu Feb 14 14:49:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Long X-Patchwork-Id: 158404 Delivered-To: patches@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1462300jaa; Thu, 14 Feb 2019 06:49:46 -0800 (PST) X-Received: by 2002:a0c:966d:: with SMTP id 42mr3221541qvy.109.1550155786808; Thu, 14 Feb 2019 06:49:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550155786; cv=none; d=google.com; s=arc-20160816; b=G2D81GRrM0evGf2DPDBg3lAgIK1ynWRX9WKb2i23JXzj+Xjah8nmUIHkQcdUbrkzg/ QtSnV2v8vFQrhUZ9SA0G5jYIdrIY5WgO6MLN+IJLf2JRbMhnxB0fuhWiz4/PiEVVlhL5 qDZSvllgx+C3tP8S+K/bX6OVvwCq14mY6zOX3yCak5QDsHaFCQldPQx4QyEClrWRKhzj vAmKhaKhk0H0pgwfCMUxridXNz+dndwoYZbezUkZeG39B6qXezkGTpun+JZrgISA7ymo 6ljhj0SfXXQmMD+ytZQJi4AG7J8Kw64mxOw+TbS7X8UVwQzPiH2qwysntTb1Id0G44Ym BM5Q== 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=G+3Fmr5UfU/k5BFyhlBattSOSFApjQMymXh87bllPFQ+wY0KwAWy77UffCtB4puDHb HLF90zN5zufXKGXQfImd1qm3KMc++GRmSFGi5d5glyGkm8KFdz1q3zEv2NC+ob8d7hov 7l1fcHdLbOjtJ6aoh7CSW8T8KruGf9konsoymMK+YGZgOnLUOdnclkE+lv3y8jO8xJov iJWMqCCViaY4x4Db1GLXepH1/UT8KD9p5oXrTHgbqAZRXLgMEnFcdriun8/+4EF42kTt 56BMX1qYbVqHQW3Zfl4qiNutw5ty23SW1yU9kM+aWPL1P6z2aEY63iROIz/PW22WslwB N54Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dh8U3TBw; 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 y2sor3262035qtb.0.2019.02.14.06.49.46 for (Google Transport Security); Thu, 14 Feb 2019 06:49:46 -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=dh8U3TBw; 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=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=LvW1OykrAPqoI4F7F4C74/aL30j/j3HP36D2kKjHzrcRrG55T6hnIPH6osCpErtseY DbKBcqvqJ6LrNpJQXtFKCQUsoGMOj5HRKATEQCg2L9oOhrcGce4Y0WVqJHnvJgBc/oMP ia3uhp4ZzXIAq8ImNj/G8DfqXb2h+SsWiYaz83iahV+WpxWPOM2RdyCk22QWWCqg83z/ JQw8bi5ooAAFCs9Eh4XQ5dxP+gmK80wrcns0eBBQpgbXiz3cXCPsrZaiz6BZlj1OrZg2 15dZTEMwvfyLn/61jWlXCI516RXdVhBTa/kurI5ExxJyo/g7ahsfF74vH+/XZ+PKkBhN lQjQ== X-Gm-Message-State: AHQUAuZB3Y3d6JV1MldgCW+G+kJZrAZZMnhxKzT7/EnMEleSmM9K22Pw UIdnJQQCBq8PNLRuckb46vM6ES2VxFK8Lg== X-Google-Smtp-Source: AHgI3IYcG97BfMxpNuc4KngAngOmKS4qSzW8ZYnZOTNl5EQYIZJraMkm8t+KiQ4aSY8epygCim8lKg== X-Received: by 2002:ac8:162b:: with SMTP id p40mr3259244qtj.326.1550155786555; Thu, 14 Feb 2019 06:49:46 -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 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> 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