Skip to content

Commit

Permalink
loongarch/cpu: Switch to arch_cpu_finalize_init()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Thomas Gleixner committed Jun 16, 2023
1 parent 6c38e30 commit 9841c42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
1 change: 1 addition & 0 deletions arch/loongarch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ config LOONGARCH
select ARCH_ENABLE_MEMORY_HOTPLUG
select ARCH_ENABLE_MEMORY_HOTREMOVE
select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI
select ARCH_HAS_CPU_FINALIZE_INIT
select ARCH_HAS_FORTIFY_SOURCE
select ARCH_HAS_NMI_SAFE_THIS_CPU_OPS
select ARCH_HAS_PTE_SPECIAL
Expand Down
15 changes: 0 additions & 15 deletions arch/loongarch/include/asm/bugs.h

This file was deleted.

4 changes: 2 additions & 2 deletions arch/loongarch/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/
#include <linux/init.h>
#include <linux/acpi.h>
#include <linux/cpu.h>
#include <linux/dmi.h>
#include <linux/efi.h>
#include <linux/export.h>
Expand All @@ -37,7 +38,6 @@
#include <asm/addrspace.h>
#include <asm/alternative.h>
#include <asm/bootinfo.h>
#include <asm/bugs.h>
#include <asm/cache.h>
#include <asm/cpu.h>
#include <asm/dma.h>
Expand Down Expand Up @@ -87,7 +87,7 @@ const char *get_system_type(void)
return "generic-loongson-machine";
}

void __init check_bugs(void)
void __init arch_cpu_finalize_init(void)
{
alternative_instructions();
}
Expand Down

0 comments on commit 9841c42

Please sign in to comment.