Skip to contentSkip to conversation

common/board_f.c: Remove arch-specific checks for cpucheck

PATCH New Ovidiu Panait 2 participants 2 messages Jan 22, 2020 – Jan 31, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 common/board_f.c: Remove arch-specific checks for cpucheck

This removes the arch-specific checks for "checkcpu" function from the init sequence. Make "checkcpu" generic and provide a weak nop stub instead.

---
 common/board_f.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
common/board_f.c +5 -2
index 3f0132a6e3..8fa26e3ca5 100644
@@ -862,6 +862,11 @@ __weak int arch_cpu_init_dm(void)
 	return 0;
 }
 
+__weak int checkcpu(void)
+{
+	return 0;
+}
+
 static const init_fnc_t init_sequence_f[] = {
 	setup_mon_len,
 #ifdef CONFIG_OF_CONTROL
@@ -904,9 +909,7 @@ static const init_fnc_t init_sequence_f[] = {
 	console_init_f,		/* stage 1 init of console */
 	display_options,	/* say that we are here */
 	display_text_info,	/* show debugging info if required */
-#if defined(CONFIG_PPC) || defined(CONFIG_SH) || defined(CONFIG_X86)
 	checkcpu,
-#endif
 #if defined(CONFIG_SYSRESET)
 	print_resetinfo,
 #endif
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 common/board_f.c: Remove arch-specific checks for cpucheck

Quoted 4 lines · Ovidiu Panait

This removes the arch-specific checks for "checkcpu" function from the init sequence. Make "checkcpu" generic and provide a weak nop stub instead.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200130/245f1ca5/attachment.sig>