]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: ensure that processor vtables is not lost after boot
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 6 Dec 2018 16:36:38 +0000 (16:36 +0000)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 6 Dec 2018 16:42:05 +0000 (16:42 +0000)
commit71863ed96525942c23c2a41307112cab1db9bc78
tree7523c4e4e64414348d94ac766f8e9ae23df15da5
parent7ef4f97b63b4ef45f5042eae29bd525b2c56a285
ARM: ensure that processor vtables is not lost after boot

Marek Szyprowski reported problems with CPU hotplug in current kernels.
This was tracked down to the processor vtables being located in an
init section, and therefore discarded after kernel boot, despite being
required after boot to properly initialise the non-boot CPUs.

Arrange for these tables to end up in .rodata when required.

Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Krzysztof Kozlowski <krzk@kernel.org>
Fixes: 7ef4f97b63b4 ("ARM: spectre-v2: per-CPU vtables to work around big.Little systems")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/mm/proc-macros.S