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:
Sultan Alsawaf 2021-08-23 00:47:31 -07:00 committed by Forenche
parent df2e9b8b1f
commit 24d71aee00
No known key found for this signature in database
GPG Key ID: 1337D655BAFE85E2

View File

@ -1476,7 +1476,8 @@ exit:
clusttimer_cancel();
}
if (cpu->bias) {
biastimer_cancel();
if (!idx)
biastimer_cancel();
cpu->bias = 0;
}
local_irq_enable();