Commit 64915915 authored by Sultan Alsawaf's avatar Sultan Alsawaf Committed by arnavpuranik
Browse files

kernel: Boost cpubw devfreq device to the max for app launches

Speeds up cold app launches.
Signed-off-by: default avatarSultan Alsawaf <>
Signed-off-by: ronax's avatarronaxdevil <>
Signed-off-by: rohan69's avatarreaPeR1010 <>
Signed-off-by: arnavpuranik's avatararnavpuranik <>
parent 30d8e91c
......@@ -79,6 +79,7 @@
#include <linux/sysctl.h>
#include <linux/kcov.h>
#include <linux/cpufreq_times.h>
#include <linux/devfreq_boost.h>
#include <asm/pgtable.h>
#include <asm/pgalloc.h>
......@@ -1780,6 +1781,11 @@ long _do_fork(unsigned long clone_flags,
int trace = 0;
long nr;
/* Boost CPU to the max for 1250 ms when userspace launches an app */
if (is_zygote_pid(current->pid)) {
devfreq_boost_kick_max(DEVFREQ_MSM_CPUBW, 1250);
* Determine whether and which event to report to ptracer. When
* called from kernel_thread or CLONE_UNTRACED is explicitly
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment