diff options
Diffstat (limited to 'drivers/cpuidle')
-rw-r--r-- | drivers/cpuidle/coupled.c | 1 | ||||
-rw-r--r-- | drivers/cpuidle/cpuidle.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cpuidle/coupled.c b/drivers/cpuidle/coupled.c index 344058f8501a..d5657d50ac40 100644 --- a/drivers/cpuidle/coupled.c +++ b/drivers/cpuidle/coupled.c | |||
@@ -119,7 +119,6 @@ struct cpuidle_coupled { | |||
119 | 119 | ||
120 | #define CPUIDLE_COUPLED_NOT_IDLE (-1) | 120 | #define CPUIDLE_COUPLED_NOT_IDLE (-1) |
121 | 121 | ||
122 | static DEFINE_MUTEX(cpuidle_coupled_lock); | ||
123 | static DEFINE_PER_CPU(struct call_single_data, cpuidle_coupled_poke_cb); | 122 | static DEFINE_PER_CPU(struct call_single_data, cpuidle_coupled_poke_cb); |
124 | 123 | ||
125 | /* | 124 | /* |
diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index 046423b0c5ca..f996efc56605 100644 --- a/drivers/cpuidle/cpuidle.c +++ b/drivers/cpuidle/cpuidle.c | |||
@@ -153,7 +153,7 @@ int cpuidle_enter_freeze(struct cpuidle_driver *drv, struct cpuidle_device *dev) | |||
153 | * be frozen safely. | 153 | * be frozen safely. |
154 | */ | 154 | */ |
155 | index = find_deepest_state(drv, dev, UINT_MAX, 0, true); | 155 | index = find_deepest_state(drv, dev, UINT_MAX, 0, true); |
156 | if (index >= 0) | 156 | if (index > 0) |
157 | enter_freeze_proper(drv, dev, index); | 157 | enter_freeze_proper(drv, dev, index); |
158 | 158 | ||
159 | return index; | 159 | return index; |