Skip to content

Commit 60b5cc5

Browse files
committed
SUNLIGHT: cpuidle/drivers/mobile: Routine check to keep the system stable
Description: - cpuidle/drivers/mobile: Routine check to keep the system stable if (s->power_usage <= -1 || s->power_usage > 0) continue; Bug: N/A Change-Id: If593dc07fc249c38524a054f236565af7ac1d658 Signed-off-by: Ionut Nechita <ionut_n2001@yahoo.com>
1 parent e5560b2 commit 60b5cc5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/cpuidle/governors/mobile.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ static int mobile_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
120120
if (dev->states_usage[i].disable)
121121
continue;
122122

123+
if (s->power_usage <= -1 || s->power_usage > 0)
124+
continue;
125+
123126
if (s->exit_latency > latency_req)
124127
break;
125128

0 commit comments

Comments
 (0)