ARM: make lookup_processor_type() non-__init
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 14 Feb 2019 02:10:16 +0000 (21:10 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:20:46 +0000 (10:20 +0100)
commitac120739812fec8cc56fc3697d79c03e94556e5b
treea7824a381971b6334cbc707204458fa88b28e143
parent5c08ea767f8e5e72e5f738e58f29f5953534a34e
ARM: make lookup_processor_type() non-__init

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 <julien.thierry@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David A. Long <dave.long@linaro.org>
Reviewed-by: Julien Thierry <julien.thierry@arm.com>
Tested-by: Julien Thierry <julien.thierry@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/kernel/head-common.S