]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: add PROC_VTABLE and PROC_TABLE macros
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 19 Jul 2018 11:17:38 +0000 (12:17 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Mon, 12 Nov 2018 10:51:01 +0000 (10:51 +0000)
commitbb976ac724e811b84a0d7cdb99a97195d98ae365
tree750f1350edd2beea0ebeb9edf254a4b82eac2398
parentaf134cd93812cb134ce3c63e92fda299ea812b24
ARM: add PROC_VTABLE and PROC_TABLE macros

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