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:
Sultan Alsawaf 2021-08-23 00:47:31 -07:00 committed by spakkkk
parent cf3a9c131c
commit 40106c0f1f

View File

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