File tree Expand file tree Collapse file tree 3 files changed +14
-17
lines changed Expand file tree Collapse file tree 3 files changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ config MIPS
4
4
default y
5
5
select ARCH_32BIT_OFF_T if !64BIT
6
6
select ARCH_BINFMT_ELF_STATE if MIPS_FP_SUPPORT
7
+ select ARCH_HAS_CPU_FINALIZE_INIT
7
8
select ARCH_HAS_CURRENT_STACK_POINTER if !CC_IS_CLANG || CLANG_VERSION >= 140000
8
9
select ARCH_HAS_DEBUG_VIRTUAL if !64BIT
9
10
select ARCH_HAS_FORTIFY_SOURCE
Original file line number Diff line number Diff line change 1
1
/* SPDX-License-Identifier: GPL-2.0 */
2
2
/*
3
- * This is included by init/main.c to check for architecture-dependent bugs.
4
- *
5
3
* Copyright (C) 2007 Maciej W. Rozycki
6
- *
7
- * Needs:
8
- * void check_bugs(void);
9
4
*/
10
5
#ifndef _ASM_BUGS_H
11
6
#define _ASM_BUGS_H
12
7
13
8
#include <linux/bug.h>
14
- #include <linux/delay.h>
15
9
#include <linux/smp.h>
16
10
17
11
#include <asm/cpu.h>
@@ -24,17 +18,6 @@ extern void check_bugs64_early(void);
24
18
extern void check_bugs32 (void );
25
19
extern void check_bugs64 (void );
26
20
27
- static inline void __init check_bugs (void )
28
- {
29
- unsigned int cpu = smp_processor_id ();
30
-
31
- cpu_data [cpu ].udelay_val = loops_per_jiffy ;
32
- check_bugs32 ();
33
-
34
- if (IS_ENABLED (CONFIG_CPU_R4X00_BUGS64 ))
35
- check_bugs64 ();
36
- }
37
-
38
21
static inline int r4k_daddiu_bug (void )
39
22
{
40
23
if (!IS_ENABLED (CONFIG_CPU_R4X00_BUGS64 ))
Original file line number Diff line number Diff line change 11
11
* Copyright (C) 2000, 2001, 2002, 2007 Maciej W. Rozycki
12
12
*/
13
13
#include <linux/init.h>
14
+ #include <linux/cpu.h>
15
+ #include <linux/delay.h>
14
16
#include <linux/ioport.h>
15
17
#include <linux/export.h>
16
18
#include <linux/screen_info.h>
@@ -840,3 +842,14 @@ static int __init setnocoherentio(char *str)
840
842
}
841
843
early_param ("nocoherentio" , setnocoherentio );
842
844
#endif
845
+
846
+ void __init arch_cpu_finalize_init (void )
847
+ {
848
+ unsigned int cpu = smp_processor_id ();
849
+
850
+ cpu_data [cpu ].udelay_val = loops_per_jiffy ;
851
+ check_bugs32 ();
852
+
853
+ if (IS_ENABLED (CONFIG_CPU_R4X00_BUGS64 ))
854
+ check_bugs64 ();
855
+ }
You can’t perform that action at this time.
0 commit comments