-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch reducing POLL_INTERVAL_MS to 50ms to optimize cold boot
Reduce POLL_INTERVAL_MS to 50ms and increase POLL_COUNT to 100 to optimize cold boot. Tracked-On: OAM-123070 Signed-off-by: Liu, Kai1 <[email protected]>
- Loading branch information
1 parent
bc33e01
commit ed9fb72
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
...s/providers/MediaProvider/0001-Reduce-POLL_INTERVAL_MS-to-50ms-to-optimize-cold-boo.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From 46d11f0f9af9134c7f87b8b9c7f106d6869565ba Mon Sep 17 00:00:00 2001 | ||
From: "Liu, Kai1" <[email protected]> | ||
Date: Tue, 6 Aug 2024 09:45:23 +0800 | ||
Subject: [PATCH] Reduce POLL_INTERVAL_MS to 50ms to optimize cold boot | ||
|
||
Reduce POLL_INTERVAL_MS to 50ms and increase POLL_COUNT to 100 to | ||
optimize cold boot. | ||
|
||
Tracked-On: OAM-123070 | ||
Signed-off-by: Liu, Kai1 <[email protected]> | ||
--- | ||
src/com/android/providers/media/fuse/FuseDaemon.java | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/src/com/android/providers/media/fuse/FuseDaemon.java b/src/com/android/providers/media/fuse/FuseDaemon.java | ||
index 34836af41..ee996e13f 100644 | ||
--- a/src/com/android/providers/media/fuse/FuseDaemon.java | ||
+++ b/src/com/android/providers/media/fuse/FuseDaemon.java | ||
@@ -36,8 +36,8 @@ import java.util.Objects; | ||
*/ | ||
public final class FuseDaemon extends Thread { | ||
public static final String TAG = "FuseDaemonThread"; | ||
- private static final int POLL_INTERVAL_MS = 1000; | ||
- private static final int POLL_COUNT = 5; | ||
+ private static final int POLL_INTERVAL_MS = 50; | ||
+ private static final int POLL_COUNT = 100; | ||
|
||
private final Object mLock = new Object(); | ||
private final MediaProvider mMediaProvider; | ||
-- | ||
2.34.1 | ||
|