forked from LineageOS/android_kernel_xiaomi_surya
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You Won't Believe These Performance & Battery Hacks #2
Open
taalojarvi
wants to merge
24
commits into
sunscape-stuff:staging
Choose a base branch
from
taalojarvi:staging
base: staging
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
Bug: 142550028 Test: Build and boot to home Change-Id: Iff24f21052422bbc3fe932a0fd1f8137376c9300 Signed-off-by: Kyle Lin <[email protected]>
Usually set by init This reverts commit 4ed9e7e.
This reverts commit ac6aefd.
This reverts commit e529735.
This is unnecessary. Easier to fix by disabling reverse charging or reverting that spurious logspam silence commit This reverts commit ab64ec4.
Unnecessary, let EAS do its job in peace.
Instead of killing an entire feature for the sake of making audio work while charing, let's revert a spurious change. Marvin suggested that this issue may due to a race condition. Unfortunately, i'm not experienced enough to triage this. You can also alternatively fix this by unsetting 'CONFIG_REVERSE_CHARGE', although i'm not aware of the consequences of the same. Ref: Stratosphere-Kernel/android_kernel_xiaomi_surya@770deaa Signed-off-by: taalojarvi <[email protected]>
Switching from full-LTO to ThinLTO has performance impact on PtsFirstPartyBenchmarksTestCases: - com.google.android.benchmark.pts.BinderPerfBenchmark - com.google.android.benchmark.pts.GoogleBenchmarkTest This patch disable ThinLTO in sunfish_defconfig Bug: 148617312 Bug: 157708274 Change-Id: I94e6cabac2c7eb0bfe7365ee9ab6b87298eb7920 Signed-off-by: Wilson Sung <[email protected]> Signed-off-by: Pranav Vashi <[email protected]> Signed-off-by: taalojarvi <[email protected]>
* we don't even ship these. Change-Id: I70feecb385cddfa0ffafeebdc17dbe6ad927d286 Signed-off-by: Rasenkai <[email protected]> Signed-off-by: Pranav Vashi <[email protected]>
This removes sdcardfs, instead using a combination of FUSE, casefolding at the FS layer, and project quotas Change-Id: If181d623a11919b6a0d1a1198fc7888cff82c6cc Bug: 138320467 Test: Boot with emulated_storage.mk included Signed-off-by: Daniel Rosenberg <[email protected]> Signed-off-by: taalojarvi <[email protected]>
Removed CONFIG_HID_PLAYSTATION support to pass SonyDualSenseEdge cts testcases. Change-Id: I25e2ea8a9e7e5a1ca53ff7e738e9611ca427294c Signed-off-by: Saranya R <[email protected]> (cherry picked from commit 5ce35d31b461bf1571b135b9e4056a22e0b9752b) Signed-off-by: taalojarvi <[email protected]>
This reverts commit 8cc3ed0.
This reverts commit c045bc8. Signed-off-by: taalojarvi <[email protected]>
This reverts commit 49fd37e.
This reverts commit 91f4dac.
- Inspired by [1]. - Ported over to zstd v1.5.2. [1]: nem0-z/android_kernel_oneplus_sm8150@ad113ac Co-authored-by: Cyber Knight <[email protected]> Signed-off-by: DevriesL <[email protected]> Signed-off-by: Artem Labazov <[email protected]> Signed-off-by: Adam W. Willis <[email protected]> Signed-off-by: Cyber Knight <[email protected]>
- Syncs latest upstream ZSTD from [1]. - This update retains the following commits: cyberknight777/dragonheart_kernel_oneplus_sm8150@edc41e9 {"lib: zstd: Fix attribute declaration"} cyberknight777/dragonheart_kernel_oneplus_sm8150@31ef7d2 {"lib: zstd: include a missing header"} cyberknight777/dragonheart_kernel_oneplus_sm8150@4927d31 {"lib: zstd: define UINTPTR_MAX"} [1]: https://github.com/facebook/zstd/commits/v1.5.4 Signed-off-by: Cyber Knight <[email protected]>
Signed-off-by: Cyber Knight <[email protected]>
Only able to be passed on full LTO, not thin LTO. Additionally, this was improperly added, KBUILD_CFLAG does not exist, only KBUILD_CFLAGS. Signed-off-by: Cyber Knight <[email protected]> Signed-off-by: taalojarvi <[email protected]>
Since Android 12, memory management on Androids has been affected significantly, especially on devices with <=4GB RAMs. Multitasking on default settings was a horror and introducing custom Low Memory Killers like SLMK did no much improvements. Introduction of MGLRU seems to have relaxed this situation and now apps don't get killed randomly. Instead, they get swapped to zRAM aggressively. In such situation, reducing swappiness parameter seems to have helped alot in multitasking and it seems fluid now. Test: on normal usage, keep 5-6 apps and use them in repeat. Outcome: none of them gets killed or swapped on in a short epoch, while 60% still stays in memory after 7 hours idling. Signed-off-by: Panchajanya1999 <[email protected]> Signed-off-by: taalojarvi <[email protected]>
Signed-off-by: HolyAngel <[email protected]> Signed-off-by: Salllz <[email protected]> Signed-off-by: alanndz <[email protected]> Signed-off-by: Cyber Knight <[email protected]> (cherry picked from commit 75bf13c9f82eb88f5d578b6bb3022092768d985a) Signed-off-by: Panchajanya1999 <[email protected]>
Signed-off-by: HolyAngel <[email protected]> Signed-off-by: Salllz <[email protected]> Signed-off-by: alanndz <[email protected]> Signed-off-by: Cyber Knight <[email protected]> (cherry picked from commit b857014598f975fd24ab06cca465ec47a7b0f3c9) Signed-off-by: Panchajanya1999 <[email protected]>
David's local builds would be impacted by this change. Switch to using a conditonal patch for Full LTO builds. This reverts commit 7402193. Signed-off-by: taalojarvi <[email protected]>
Checks if the build is running on GitHub Actions. If true, switches the build to Full LTO Refs: [1]: https://docs.github.com/en/actions/learn-github-actions/variables [2]: 7402193 Signed-off-by: taalojarvi <[email protected]>
taalojarvi
changed the title
Improve Performance & Battery Life: Disable Boost, Fix Audio, & Set Timer Freq
You Won't Believe These Performance & Battery Hacks
Jul 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @David112x,
RFC on this pull request that implements the following changes:
These changes aim to improve overall device performance and battery life without sacrificing essential features.
Additional Notes: