[Skiboot] [PATCH 06/17] core/init.c: use if (platform.bmc) rather than !fsp_present()

Stewart Smith stewart at linux.ibm.com
Tue Jun 18 17:29:14 AEST 2019


This decouples FSP platform from core skiboot logic by using this small
hack that may/may not be a good idea (although is already used
elsewhere, so at least we're consistent).

Signed-off-by: Stewart Smith <stewart at linux.ibm.com>
---
 core/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/init.c b/core/init.c
index 9990483a599b..39e3faa3c99a 100644
--- a/core/init.c
+++ b/core/init.c
@@ -1205,7 +1205,7 @@ void __noreturn __nomcount main_cpu_entry(const void *fdt)
 	 * OCC initialisation as late as possible to give it the
 	 * maximum time to boot up.
 	 */
-	if (!fsp_present())
+	if (platform.bmc)
 		occ_pstates_init();
 
 	pci_nvram_init();
-- 
2.21.0



More information about the Skiboot mailing list