]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ARM: add PROC_VTABLE and PROC_TABLE macros
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 14 Feb 2019 02:10:19 +0000 (21:10 -0500)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit62230039a05026b261bb727490ae9296cf760ce5
tree1356c25733c82f9a85e24ab9e249dc2f7edf2ea3
parent5d677fdc17ebd269a05297e54e8707eaba764ccb
ARM: add PROC_VTABLE and PROC_TABLE macros

BugLink: https://bugs.launchpad.net/bugs/1837813
Commit e209950fdd065d2cc46e6338e47e52841b830cba upstream.

Allow the way we access members of the processor vtable to be changed
at compile time.  We will need to move to per-CPU vtables to fix the
Spectre variant 2 issues on big.Little systems.

However, we have a couple of calls that do not need the vtable
treatment, and indeed cause a kernel warning due to the (later) use
of smp_processor_id(), so also introduce the PROC_TABLE macro for
these which always use CPU 0's function pointers.

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>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/arm/include/asm/proc-fns.h
arch/arm/kernel/setup.c