diff options
Diffstat (limited to 'drivers/cpuidle/cpuidle.c')
-rw-r--r-- | drivers/cpuidle/cpuidle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index 5405769020a..5ce07b517c5 100644 --- a/drivers/cpuidle/cpuidle.c +++ b/drivers/cpuidle/cpuidle.c | |||
@@ -94,7 +94,7 @@ void cpuidle_install_idle_handler(void) | |||
94 | */ | 94 | */ |
95 | void cpuidle_uninstall_idle_handler(void) | 95 | void cpuidle_uninstall_idle_handler(void) |
96 | { | 96 | { |
97 | if (enabled_devices && (pm_idle != pm_idle_old)) { | 97 | if (enabled_devices && pm_idle_old && (pm_idle != pm_idle_old)) { |
98 | pm_idle = pm_idle_old; | 98 | pm_idle = pm_idle_old; |
99 | cpuidle_kick_cpus(); | 99 | cpuidle_kick_cpus(); |
100 | } | 100 | } |