Skip to content

Commit 9841c42

Browse files
committed
loongarch/cpu: Switch to arch_cpu_finalize_init()
check_bugs() is about to be phased out. Switch over to the new arch_cpu_finalize_init() implementation. No functional change. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20230613224545.195288218@linutronix.de
1 parent 6c38e30 commit 9841c42

File tree

3 files changed

+3
-17
lines changed

3 files changed

+3
-17
lines changed

arch/loongarch/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ config LOONGARCH
1010
select ARCH_ENABLE_MEMORY_HOTPLUG
1111
select ARCH_ENABLE_MEMORY_HOTREMOVE
1212
select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI
13+
select ARCH_HAS_CPU_FINALIZE_INIT
1314
select ARCH_HAS_FORTIFY_SOURCE
1415
select ARCH_HAS_NMI_SAFE_THIS_CPU_OPS
1516
select ARCH_HAS_PTE_SPECIAL

arch/loongarch/include/asm/bugs.h

Lines changed: 0 additions & 15 deletions
This file was deleted.

arch/loongarch/kernel/setup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*/
1313
#include <linux/init.h>
1414
#include <linux/acpi.h>
15+
#include <linux/cpu.h>
1516
#include <linux/dmi.h>
1617
#include <linux/efi.h>
1718
#include <linux/export.h>
@@ -37,7 +38,6 @@
3738
#include <asm/addrspace.h>
3839
#include <asm/alternative.h>
3940
#include <asm/bootinfo.h>
40-
#include <asm/bugs.h>
4141
#include <asm/cache.h>
4242
#include <asm/cpu.h>
4343
#include <asm/dma.h>
@@ -87,7 +87,7 @@ const char *get_system_type(void)
8787
return "generic-loongson-machine";
8888
}
8989

90-
void __init check_bugs(void)
90+
void __init arch_cpu_finalize_init(void)
9191
{
9292
alternative_instructions();
9393
}

0 commit comments

Comments
 (0)