[Skiboot] [PATCH 3/9] fast-reboot: add missing clear memory fallback

Nicholas Piggin npiggin at gmail.com
Thu Feb 27 05:34:02 AEDT 2020


Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
---
 core/mem_region.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/core/mem_region.c b/core/mem_region.c
index eb48a1a11..8eda30598 100644
--- a/core/mem_region.c
+++ b/core/mem_region.c
@@ -1365,8 +1365,14 @@ void start_mem_region_clear_unused(void)
 		free(path);
 		jobs[i] = cpu_queue_job_on_node(chip_id,
 						job_args[i].job_name,
-					mem_region_clear_job,
-					&job_args[i]);
+						mem_region_clear_job,
+						&job_args[i]);
+		if (!jobs[i])
+			jobs[i] = cpu_queue_job(NULL,
+						job_args[i].job_name,
+						mem_region_clear_job,
+						&job_args[i]);
+		assert(jobs[i]);
 		i++;
 	}
 	unlock(&mem_region_lock);
-- 
2.23.0



More information about the Skiboot mailing list