From patchwork Thu Aug 1 08:16:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 11070339 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 23E0313AC for ; Thu, 1 Aug 2019 08:27:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1584D2839C for ; Thu, 1 Aug 2019 08:27:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 09CF3283C3; Thu, 1 Aug 2019 08:27:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A9BB62839C for ; Thu, 1 Aug 2019 08:27:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UgYOtyaamy8Mpgwb9/bmtTK7wpwOw5QNyBGBayyTDk0=; b=BXxT9LCeCoEnWQ XPJ0mCnAUWUQK5Yoia6RZI8wtgTYvUnqImwsNt+Fv02dRW9+tz1gUnkV5/2AYfvyKzMYD7tatgzJt wxd005cEJhiipbvcfIqeskfbnVL/OpZ+Prg0P7sDBW0Nu/vENdwxjA2LEdbVS/Wzpznvx5PmHi9wq XFLguOIVXN/Aoj1/fmFnvU8lcBHC/Li0biTFIDc8qXkWplUa2Kv67aZT5JaJemUQ1parcnAFTG3Y/ XI7Fo33G9lY6unl9rTkfEQUZ4aYox9MLmfFatIwXUXy612pl9w08V60qo+ROd+IMALQdE84E7/Iz4 YtirYCLCH4MuQZ06EvFQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1ht6R1-0004Y3-FR; Thu, 01 Aug 2019 08:27:39 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1ht6Kq-0003Pu-NG for linux-arm-kernel@lists.infradead.org; Thu, 01 Aug 2019 08:21:18 +0000 Received: by mail-pf1-x441.google.com with SMTP id r1so33599032pfq.12 for ; Thu, 01 Aug 2019 01:21:16 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=Ds/lGPMr1EeNlwL4g2s5u78S6SjnXx7V9zy6A/rndeo=; b=mrBLXFMWzLa/t7R+RAPTUBkuVhtuO0SSPUQKBcr4iUCBlgaEqHyhHd1/uFMJhGMS4H N7XjT/O08TzqMLeVggwfT1HkHWMoa9XZeUoJ2ULmHwCAkn2l0Y5Ub+4RWPx5FREjiOG3 xUhF0T115Bzb04sIYFubQM6mOq/14QvHEkB5h782l/RJNU1EKnLx/NMzfR0bgMV3We07 4zuE/xFl23PtDuJ0i3REzyBcqE3BaNSJTNyqxML7FsXc7LTY8qLCZ3zUH+TZ1ypTx/gE qFmHoJxAufo87ZLAQx8l988GrmSI8dpXGDOubdDWBDHk030J6NlJEpENvqm9TEq1OThR d0hQ== 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:mime-version:content-transfer-encoding; bh=Ds/lGPMr1EeNlwL4g2s5u78S6SjnXx7V9zy6A/rndeo=; b=P4mcD3L16K74/6PHB9q+9TMQVpKR9GrvCjNl+Q17ZZtkzT/HO2hg1xVI2ktiuT1hlo KRBha8PHi7M2Do3AiBN8mjpqPZi1UDw3gaoXly8FxDMB/syTRXVQnb87OkzPmtmLyBwf C8gCsRCXQaFkiTEdwWequhaGCa5Epmh9WFqsPQfrbY+ngEgzXYi59mzz6QB4IT9oNKY5 ES3CjNrrgATZkeByNkhbhycM6q9lMMnhkUou/pZ+0nJiAs9zEpPao8lxQo9XS2xOVJvl +4cG1FT96DvLsHzMXABzou0UllT3daIRcw5zF54ZP7l2iZzpu558pDnBNoymBjqCo3gC bcZA== X-Gm-Message-State: APjAAAVofXnB4sBlHSvA3I6KucCK3CQzsvtWlXpRJA4t3ED7wssWC0St Bf24vuayjPqiH/0bfaGyqAxRuH8j4ro= X-Google-Smtp-Source: APXvYqwtKxDMpgoZCbvREEE29QxNQP1W961hLJzisPedFonBaTo+teb/eU6GTFHq0O6jopgGgyalGg== X-Received: by 2002:a62:642:: with SMTP id 63mr52289837pfg.257.1564647676154; Thu, 01 Aug 2019 01:21:16 -0700 (PDT) Received: from localhost ([122.172.28.117]) by smtp.gmail.com with ESMTPSA id v18sm69519775pgl.87.2019.08.01.01.21.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Aug 2019 01:21:15 -0700 (PDT) From: Viresh Kumar To: stable@vger.kernel.org Subject: [PATCH ARM32 v4.4 V2 39/47] ARM: make lookup_processor_type() non-__init Date: Thu, 1 Aug 2019 13:46:23 +0530 Message-Id: <8571a7c6a6ff472e0d794311dda2ee4fb64f29eb.1564646727.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.21.0.rc0.269.g1a574e7a288b In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190801_012116_781641_B85B9C30 X-CRM114-Status: GOOD ( 12.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Julien Thierry , Marc Zyngier , Viresh Kumar , guohanjun@huawei.com, Will Deacon , mark.brown@arm.com, Catalin Marinas , Russell King , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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: Viresh Kumar --- 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 @@ ENDPROC(__mmap_switched) .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