linux-stable/arch
Thomas Gleixner 01d36b819b init: Provide arch_cpu_finalize_init()
commit 7725acaa4f upstream

check_bugs() has become a dumping ground for all sorts of activities to
finalize the CPU initialization before running the rest of the init code.

Most are empty, a few do actual bug checks, some do alternative patching
and some cobble a CPU advertisement string together....

Aside of that the current implementation requires duplicated function
declaration and mostly empty header files for them.

Provide a new function arch_cpu_finalize_init(). Provide a generic
declaration if CONFIG_ARCH_HAS_CPU_FINALIZE_INIT is selected and a stub
inline otherwise.

This requires a temporary #ifdef in start_kernel() which will be removed
along with check_bugs() once the architectures are converted over.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230613224544.957805717@linutronix.de
Signed-off-by: Daniel Sneddon <daniel.sneddon@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-08 19:48:23 +02:00
..
alpha alpha: fix R_ALPHA_LITERAL reloc for large modules 2023-03-17 08:30:38 +01:00
arc arc: iounmap() arg is volatile 2022-11-03 23:50:54 +09:00
arm ARM: dts: vexpress: add missing cache properties 2023-06-21 15:38:57 +02:00
arm64 arm64: Add missing Set/Way CMO encodings 2023-06-28 10:14:20 +02:00
blackfin
c6x
cris
frv
h8300 h8300: Fix build errors from do_exit() to make_task_dead() transition 2023-02-06 07:46:34 +01:00
hexagon hexagon: Fix function name in die() 2023-02-06 07:46:34 +01:00
ia64 ia64: mm/contig: fix section mismatch warning/error 2023-05-17 11:11:43 +02:00
m32r
m68k m68k: Move signal frame following exception on 68020/030 2023-05-30 12:38:37 +01:00
metag
microblaze exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
mips Remove DECnet support from kernel 2023-06-21 15:38:58 +02:00
mn10300
nios2 nios2: dts: Fix tse_mac "max-frame-size" property 2023-06-21 15:38:58 +02:00
openrisc exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
parisc parisc: Allow to reboot machine after system halt 2023-05-30 12:38:37 +01:00
powerpc powerpc: Fix defconfig choice logic when cross compiling 2023-06-21 15:38:59 +02:00
riscv/include/uapi/asm riscv: Bump COMMAND_LINE_SIZE value to 1024 2023-04-05 11:14:16 +02:00
s390 s390/ptrace: fix PTRACE_GET_LAST_BREAK error handling 2023-04-26 11:18:56 +02:00
score
sh sh: nmi_debug: fix return value of __setup handler 2023-05-17 11:11:50 +02:00
sparc exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
tile
um UM: cpuinfo: Fix a warning for CONFIG_CPUMASK_OFFSTACK 2022-10-26 13:16:56 +02:00
unicore32 linux/const.h: move UL() macro to include/linux/const.h 2022-11-10 15:47:24 +01:00
x86 x86/apic: Fix kernel panic when booting with intremap=off and x2apic_phys 2023-06-28 10:14:21 +02:00
xtensa exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
.gitignore
Kconfig init: Provide arch_cpu_finalize_init() 2023-08-08 19:48:23 +02:00