OSDN Git Service

cpuidle: lpm-levels: Do not predict LPM for isolated cpus
authorMaulik Shah <mkshah@codeaurora.org>
Thu, 30 Nov 2017 11:39:29 +0000 (17:09 +0530)
committerArian <arian.kulmer@web.de>
Tue, 19 Nov 2019 14:36:12 +0000 (15:36 +0100)
Prediction can select shallower low power mode for isolated
cpu based on historical data.

Do not predict LPMs for isolated cpus.

Change-Id: I998008ef3c578c1dccfacae8513a15dfbe397e16
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
drivers/cpuidle/lpm-levels.c

index 324cce5..37acbd6 100644 (file)
@@ -740,7 +740,7 @@ static int cpu_power_select(struct cpuidle_device *dev,
                                next_wakeup_us = next_event_us - lvl_latency_us;
                }
 
-               if (!i) {
+               if (!i && !cpu_isolated(dev->cpu)) {
                        /*
                         * If the next_wake_us itself is not sufficient for
                         * deeper low power modes than clock gating do not