[Skiboot] [PATCH 04/16] fast-reboot: add missing clear memory fallback
Nicholas Piggin
npiggin at gmail.com
Mon Apr 27 21:08:01 AEST 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 00548326c..36de2d094 100644
--- a/core/mem_region.c
+++ b/core/mem_region.c
@@ -1379,8 +1379,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