mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
LSK-ANDROID: cpufreq-dt: fix incorrect cherry-pick from android-4.4
Fix incorrect cherry-pick of Change-Id: Iec92d710c79d9c10d0bef1b617942185448fc214
("ANDROID: cpufreq-dt: Set sane defaults for schedutil rate limits"),
in lsk-v4.4-android topic branch.
Fixes: lsk-v4.4-android commit d5a094a326
("ANDROID: cpufreq-dt: Set sane defaults for schedutil rate limits")
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
This commit is contained in:
@@ -279,6 +279,13 @@ static int cpufreq_init(struct cpufreq_policy *policy)
|
||||
|
||||
policy->cpuinfo.transition_latency = transition_latency;
|
||||
|
||||
/*
|
||||
* Android: set default parameters for parity between schedutil and
|
||||
* schedfreq
|
||||
*/
|
||||
policy->up_transition_delay_us = transition_latency / NSEC_PER_USEC;
|
||||
policy->down_transition_delay_us = 50000; /* 50ms */
|
||||
|
||||
return 0;
|
||||
|
||||
out_free_cpufreq_table:
|
||||
@@ -340,13 +347,6 @@ static void cpufreq_ready(struct cpufreq_policy *policy)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Android: set default parameters for parity between schedutil and
|
||||
* schedfreq
|
||||
*/
|
||||
policy->up_transition_delay_us = transition_latency / NSEC_PER_USEC;
|
||||
policy->down_transition_delay_us = 50000; /* 50ms */
|
||||
|
||||
of_node_put(np);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user