Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f36b4907 authored by Wei Wang's avatar Wei Wang
Browse files

Make sure mark_idle job run before write_back jobs

Set a minimal delay to ensure the sequence of jobs

Bug: 117682284
Test: Build and boot
Change-Id: I90a405b66d2f60b2b463b735a4e9d7bd40025e65
parent 924f620c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -174,6 +174,7 @@ public final class ZramWriteback extends JobService {
        // back at later point if they remain untouched.
        js.schedule(new JobInfo.Builder(MARK_IDLE_JOB_ID, sZramWriteback)
                        .setMinimumLatency(TimeUnit.MINUTES.toMillis(markIdleDelay))
                        .setOverrideDeadline(TimeUnit.MINUTES.toMillis(markIdleDelay))
                        .build());

        // Schedule a one time job to flush idle pages to disk.