mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
lpm-levels: Remove unused code used for debugging
Change-Id: I9b790582a947da8929ec1bff54391f2bd680f023 Signed-off-by: Kazuki Hashimoto <kazukih@tuta.io> Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
parent
64a84945b2
commit
5a83ba3c75
@ -1283,10 +1283,9 @@ static int lpm_cpuidle_enter(struct cpuidle_device *dev,
|
||||
bool success = false;
|
||||
const struct cpumask *cpumask = get_cpu_mask(dev->cpu);
|
||||
ktime_t start = ktime_get();
|
||||
uint64_t start_time = ktime_to_ns(start), end_time;
|
||||
|
||||
cpu_prepare(cpu, idx, true);
|
||||
cluster_prepare(cpu->parent, cpumask, idx, true, start_time);
|
||||
cluster_prepare(cpu->parent, cpumask, idx, true, 0);
|
||||
|
||||
if (need_resched())
|
||||
goto exit;
|
||||
@ -1296,9 +1295,7 @@ static int lpm_cpuidle_enter(struct cpuidle_device *dev,
|
||||
cpuidle_clear_idle_cpu(dev->cpu);
|
||||
|
||||
exit:
|
||||
end_time = ktime_to_ns(ktime_get());
|
||||
|
||||
cluster_unprepare(cpu->parent, cpumask, idx, true, end_time, success);
|
||||
cluster_unprepare(cpu->parent, cpumask, idx, true, 0, success);
|
||||
cpu_unprepare(cpu, idx, true);
|
||||
update_history(dev, idx);
|
||||
if (lpm_prediction_enabled && cpu->lpm_prediction) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user