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>
This commit is contained in:
parent
cf3a9c131c
commit
40106c0f1f
@ -1419,7 +1419,8 @@ exit:
|
|||||||
clusttimer_cancel();
|
clusttimer_cancel();
|
||||||
}
|
}
|
||||||
if (cpu->bias) {
|
if (cpu->bias) {
|
||||||
biastimer_cancel();
|
if (!idx)
|
||||||
|
biastimer_cancel();
|
||||||
cpu->bias = 0;
|
cpu->bias = 0;
|
||||||
}
|
}
|
||||||
local_irq_enable();
|
local_irq_enable();
|
||||||
|
Loading…
Reference in New Issue
Block a user