mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
cpuidle: lpm-levels: Only cancel the bias timer when it's used
The bias timer is only started when WFI is used, so we only need to try and cancel it after leaving WFI. Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com> Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com> Signed-off-by: Forenche <prahul2003@gmail.com>
This commit is contained in:
parent
df2e9b8b1f
commit
24d71aee00
@ -1476,7 +1476,8 @@ exit:
|
||||
clusttimer_cancel();
|
||||
}
|
||||
if (cpu->bias) {
|
||||
biastimer_cancel();
|
||||
if (!idx)
|
||||
biastimer_cancel();
|
||||
cpu->bias = 0;
|
||||
}
|
||||
local_irq_enable();
|
||||
|
Loading…
x
Reference in New Issue
Block a user