Skip to contentSkip to conversation

x86: Remove cpu_init_r() for x86

PATCH New Bin Meng 2 participants 3 messages Nov 20, 2014 – Nov 25, 2014 x86

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 2/4 x86: Remove cpu_init_r() for x86

Since cpu_init_interrupts() was moved out of cpu_init_r(), it is useless to keep cpu_init_r() for x86, thus remove it.

---
 arch/x86/cpu/cpu.c                | 6 ------
 arch/x86/include/asm/u-boot-x86.h | 2 --
 common/board_r.c                  | 2 +-
 3 files changed, 1 insertion(+), 9 deletions(-)
arch/x86/cpu/cpu.c +0 -6
index cf0606e..1a6f679 100644
@@ -319,12 +319,6 @@ int x86_cpu_init_f(void)
 	return 0;
 }
 
-int x86_cpu_init_r(void)
-{
-	return 0;
-}
-int cpu_init_r(void) __attribute__((weak, alias("x86_cpu_init_r")));
-
 void x86_enable_caches(void)
 {
 	unsigned long cr0;
arch/x86/include/asm/u-boot-x86.h +0 -2
index 0399417..f454b83 100644
@@ -10,8 +10,6 @@
 
 /* cpu/.../cpu.c */
 int arch_cpu_init(void);
-int x86_cpu_init_r(void);
-int cpu_init_r(void);
 int x86_cpu_init_f(void);
 int cpu_init_f(void);
 void init_gd(gd_t *id, u64 *gdt_addr);
common/board_r.c +1 -1
index 7c33900..b5ea030 100644
@@ -774,7 +774,7 @@ init_fnc_t init_sequence_r[] = {
 	initr_flash,
 #endif
 	INIT_FUNC_WATCHDOG_RESET
-#if defined(CONFIG_PPC) || defined(CONFIG_X86)
+#if defined(CONFIG_PPC)
 	/* initialize higher level parts of CPU like time base and timers */
 	cpu_init_r,
 #endif
Signature · 1 line
1.8.2.1
#1 lore raw

PATCH 2/4 x86: Remove cpu_init_r() for x86

Quoted 9 lines · Bin Meng

Since cpu_init_interrupts() was moved out of cpu_init_r(), it is useless to keep cpu_init_r() for x86, thus remove it.

---
 arch/x86/cpu/cpu.c                | 6 ------
 arch/x86/include/asm/u-boot-x86.h | 2 --
 common/board_r.c                  | 2 +-
 3 files changed, 1 insertion(+), 9 deletions(-)

Tested on chromebook_link:

#2 lore raw

PATCH 2/4 x86: Remove cpu_init_r() for x86

Quoted 11 lines · Simon Glass
Quoted 9 lines · Bin Meng

Since cpu_init_interrupts() was moved out of cpu_init_r(), it is useless to keep cpu_init_r() for x86, thus remove it.

---
 arch/x86/cpu/cpu.c                | 6 ------
 arch/x86/include/asm/u-boot-x86.h | 2 --
 common/board_r.c                  | 2 +-
 3 files changed, 1 insertion(+), 9 deletions(-)
Quoted 4 lines

Tested on chromebook_link:

Applied to u-boot-x86, thanks!