Skip to contentSkip to conversation

x86: cpu: Describe board final hooks in the header

PATCH In review Andy Shevchenko 3 participants 5 messages Oct 18, 2024 – May 9, 2025 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: cpu: Describe board final hooks in the header

The new two declarations board_final_init() and board_final_cleanup() need a description. Add it here.

---
 arch/x86/include/asm/cpu.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/x86/include/asm/cpu.h +13 -0
index d71bc1b80c05..a5b2043f7de1 100644
@@ -298,7 +298,20 @@ u32 cpu_get_stepping(void);
  */
 int cpu_phys_address_size(void);
 
+/**
+ * board_final_init() - Final initialization hook (optional)
+ *
+ * Implements a custom initialization for boards that need to do it
+ * before the system is ready.
+ */
 void board_final_init(void);
+
+/**
+ * board_final_cleanup() - Final cleanup hook (optional)
+ *
+ * Implements a custom cleanup for boards that need to do it before
+ * booting the OS.
+ */
 void board_final_cleanup(void);
 
 #ifndef CONFIG_EFI_STUB
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Andy Shevchenko

The new two declarations board_final_init() and board_final_cleanup() need a description. Add it here.

---
 arch/x86/include/asm/cpu.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)
Quoted 28 lines
arch/x86/include/asm/cpu.h +13 -1
index d71bc1b80c05..a5b2043f7de1 100644
@@ -298,7 +298,20 @@ u32 cpu_get_stepping(void);
  */
 int cpu_phys_address_size(void);
 
+/**
+ * board_final_init() - Final initialization hook (optional)
+ *
+ * Implements a custom initialization for boards that need to do it
+ * before the system is ready.
+ */
 void board_final_init(void);
+
+/**
+ * board_final_cleanup() - Final cleanup hook (optional)
+ *
+ * Implements a custom cleanup for boards that need to do it before
+ * booting the OS.
+ */
 void board_final_cleanup(void);
 
 #ifndef CONFIG_EFI_STUB
--

2.43.0.rc1.1336.g36b5255a03ac

#2 lore raw
Quoted 6 lines · Simon Glass
Quoted 4 lines · Andy Shevchenko

The new two declarations board_final_init() and board_final_cleanup() need a description. Add it here.

Quoted 8 lines
Quoted 6 lines
---
 arch/x86/include/asm/cpu.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

What's the status of this?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#3 lore raw
Quoted 14 lines · Andy Shevchenko
Quoted 13 lines · Simon Glass
Quoted 10 lines · Andy Shevchenko

The new two declarations board_final_init() and board_final_cleanup() need a description. Add it here.

---
 arch/x86/include/asm/cpu.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)
Quoted 3 lines
Quoted 1 line

What's the status of this?

I haven't heard from Bin in a while, so I guess I should go and pickup the outstanding patches. Thanks for the reminder.

Signature · 1 line
Tom