ARM: split out processor lookup
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 13 Feb 2019 21:32:18 +0000 (16:32 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:25:38 +0000 (10:25 +0100)
commit8a4cf73fed230059bf6adbde4793c01ba2d41f53
treeb351a62c87edeb3b8cc74b6453bdfbdf256486d4
parente3e1b2a20ad3773311ce626e682b4cc04b589e85
ARM: split out processor lookup

Commit 65987a8553061515b5851b472081aedb9837a391 upstream.

Split out the lookup of the processor type and associated error handling
from the rest of setup_processor() - we will need to use this in the
secondary CPU bringup path for big.Little Spectre variant 2 mitigation.

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/include/asm/cputype.h
arch/arm/kernel/setup.c