msm-4.14: Bump boosts input timeouts

Change-Id: I55077d5fecbf231539ad94ac058226cbc39d1479
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
Richard Raya 2024-12-18 02:11:25 -03:00
parent dc1bda571f
commit 30f8174d8a
3 changed files with 10 additions and 10 deletions

View File

@ -2264,13 +2264,13 @@ static int __drm_mode_atomic_ioctl(struct drm_device *dev, void *data,
/*
* Boost upon running an atomic ioctl. Only
* if within 3.2s input timeout.
* if within 7s input timeout.
*/
if (!(arg->flags & DRM_MODE_ATOMIC_TEST_ONLY)) {
if (cpu_input_boost_within_input(3250)) {
if (cpu_input_boost_within_input(7000)) {
cpu_input_boost_kick();
}
if (df_boost_within_input(3250)) {
if (df_boost_within_input(7000)) {
devfreq_boost_kick(DEVFREQ_MSM_CPUBW);
devfreq_boost_kick(DEVFREQ_MSM_LLCCBW);
}

View File

@ -4373,12 +4373,12 @@ void sde_crtc_commit_kickoff(struct drm_crtc *crtc,
/*
* Boost when a new frame is ready to be committed. Only
* if within 3.2s input timeout.
* if within 7s input timeout.
*/
if (cpu_input_boost_within_input(3250)) {
if (cpu_input_boost_within_input(7000)) {
cpu_input_boost_kick();
}
if (df_boost_within_input(3250)) {
if (df_boost_within_input(7000)) {
devfreq_boost_kick(DEVFREQ_MSM_CPUBW);
devfreq_boost_kick(DEVFREQ_MSM_LLCCBW);
}

View File

@ -2248,16 +2248,16 @@ long _do_fork(unsigned long clone_flags,
long nr;
/*
* Boost to the max for 50 ms when userspace launches an app. Only
* Boost to the max for 500 ms when userspace launches an app. Only
* if within 1.5s input timeout.
*/
if (task_is_zygote(current)) {
if (df_boost_within_input(1500)) {
devfreq_boost_kick_max(DEVFREQ_MSM_CPUBW, 50);
devfreq_boost_kick_max(DEVFREQ_MSM_LLCCBW, 50);
devfreq_boost_kick_max(DEVFREQ_MSM_CPUBW, 500);
devfreq_boost_kick_max(DEVFREQ_MSM_LLCCBW, 500);
}
if (cpu_input_boost_within_input(1500)) {
cpu_input_boost_kick_max(50);
cpu_input_boost_kick_max(500);
}
}