Skip to content

Commit ee31bb0

Browse files
committed
ARM: 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.078124882@linutronix.de
1 parent 7c7077a commit ee31bb0

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

arch/arm/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ config ARM
55
select ARCH_32BIT_OFF_T
66
select ARCH_CORRECT_STACKTRACE_ON_KRETPROBE if HAVE_KRETPROBES && FRAME_POINTER && !ARM_UNWIND
77
select ARCH_HAS_BINFMT_FLAT
8+
select ARCH_HAS_CPU_FINALIZE_INIT if MMU
89
select ARCH_HAS_CURRENT_STACK_POINTER
910
select ARCH_HAS_DEBUG_VIRTUAL if MMU
1011
select ARCH_HAS_DMA_WRITE_COMBINE if !ARM_DMA_MEM_BUFFERABLE

arch/arm/include/asm/bugs.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/* SPDX-License-Identifier: GPL-2.0-only */
22
/*
3-
* arch/arm/include/asm/bugs.h
4-
*
53
* Copyright (C) 1995-2003 Russell King
64
*/
75
#ifndef __ASM_BUGS_H
@@ -10,10 +8,8 @@
108
extern void check_writebuffer_bugs(void);
119

1210
#ifdef CONFIG_MMU
13-
extern void check_bugs(void);
1411
extern void check_other_bugs(void);
1512
#else
16-
#define check_bugs() do { } while (0)
1713
#define check_other_bugs() do { } while (0)
1814
#endif
1915

arch/arm/kernel/bugs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0
22
#include <linux/init.h>
3+
#include <linux/cpu.h>
34
#include <asm/bugs.h>
45
#include <asm/proc-fns.h>
56

@@ -11,7 +12,7 @@ void check_other_bugs(void)
1112
#endif
1213
}
1314

14-
void __init check_bugs(void)
15+
void __init arch_cpu_finalize_init(void)
1516
{
1617
check_writebuffer_bugs();
1718
check_other_bugs();

0 commit comments

Comments
 (0)