[Skiboot] [PATCH v2 6/6] FSP/ELOG: Fix OPAL generated elog resend logic

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Sun Jul 3 01:33:43 AEST 2016


Fix resend logic in opal_resend_pending_logs, so that it actually
restarts sending remaining logs.

Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
 hw/fsp/fsp-elog-write.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/hw/fsp/fsp-elog-write.c b/hw/fsp/fsp-elog-write.c
index b78bc20..f38c236 100644
--- a/hw/fsp/fsp-elog-write.c
+++ b/hw/fsp/fsp-elog-write.c
@@ -262,11 +262,6 @@ void opal_resend_pending_logs(void)
 	struct errorlog *record;
 
 	lock(&elog_write_to_host_lock);
-	if (list_empty(&elog_write_to_host_processed)) {
-		unlock(&elog_write_to_host_lock);
-		return;
-	}
-
 	while (!list_empty(&elog_write_to_host_processed)) {
 		record = list_pop(&elog_write_to_host_processed,
 					struct errorlog, link);
-- 
2.5.5



More information about the Skiboot mailing list