[Skiboot] [PATCH 3/3] hostservices/fsp: Move lid caching to platform

Ananth N Mavinakayanahalli ananth at in.ibm.com
Thu Feb 19 21:08:40 AEDT 2015


Move lid caching from skiboot init to platform initialization code,
just after the OPL sequence.

Signed-off-by: Ananth N Mavinakayanahalli <ananth at in.ibm.com>
---
 core/init.c                |    3 ---
 platforms/ibm-fsp/common.c |    4 ++++
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/core/init.c b/core/init.c
index 681fa22..4e94655 100644
--- a/core/init.c
+++ b/core/init.c
@@ -641,9 +641,6 @@ void __noreturn main_cpu_entry(const void *fdt, u32 master_cpu)
 	if (platform.init)
 		platform.init();
 
-	/* Preload hostservices lids */
-	hservices_lid_preload();
-
 	/* Setup dummy console nodes if it's enabled */
 	if (dummy_console_enabled())
 		dummy_console_add_nodes();
diff --git a/platforms/ibm-fsp/common.c b/platforms/ibm-fsp/common.c
index 5eb2a14..2bc1f05 100644
--- a/platforms/ibm-fsp/common.c
+++ b/platforms/ibm-fsp/common.c
@@ -20,6 +20,7 @@
 #include <fsp-sysparam.h>
 #include <opal.h>
 #include <console.h>
+#include <hostservices.h>
 
 #include "ibm-fsp.h"
 
@@ -103,6 +104,9 @@ void ibm_fsp_init(void)
 	/* Start FSP/HV state controller & perform OPL */
 	fsp_opl();
 
+	/* Preload hostservices lids */
+	hservices_lid_preload();
+
 	/* Initialize SP attention area */
 	fsp_attn_init();
 



More information about the Skiboot mailing list