From ac75a9161e23b7073edcf0ec07d584b87d2e0e08 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 23 Feb 2020 20:52:17 +0000 Subject: llcache: Persist anything available during llcache_finalise Signed-off-by: Daniel Silverstone --- content/llcache.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'content') diff --git a/content/llcache.c b/content/llcache.c index 3a75bf971..9c74fbd6e 100644 --- a/content/llcache.c +++ b/content/llcache.c @@ -3769,6 +3769,11 @@ void llcache_finalise(void) llcache_object *object, *next; uint64_t total_bandwidth = 0; /* total bandwidth */ + /* Attempt to persist anything we have left lying around */ + llcache_persist(NULL); + /* Now clear the persistence callback */ + guit->misc->schedule(-1, llcache_persist, NULL); + /* Clean uncached objects */ for (object = llcache->uncached_objects; object != NULL; object = next) { llcache_object_user *user, *next_user; -- cgit v1.2.3