diff options
-rw-r--r-- | arch/arm/mach-exynos/cpuidle.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c index ddbfe8709fe7..8e0eb2ef8c41 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c | |||
@@ -151,8 +151,8 @@ static int exynos4_enter_lowpower(struct cpuidle_device *dev, | |||
151 | { | 151 | { |
152 | int new_index = index; | 152 | int new_index = index; |
153 | 153 | ||
154 | /* This mode only can be entered when other core's are offline */ | 154 | /* AFTR can only be entered when cores other than CPU0 are offline */ |
155 | if (num_online_cpus() > 1) | 155 | if (num_online_cpus() > 1 || dev->cpu != 0) |
156 | new_index = drv->safe_state_index; | 156 | new_index = drv->safe_state_index; |
157 | 157 | ||
158 | if (new_index == 0) | 158 | if (new_index == 0) |
@@ -214,10 +214,6 @@ static int exynos_cpuidle_probe(struct platform_device *pdev) | |||
214 | device = &per_cpu(exynos4_cpuidle_device, cpu_id); | 214 | device = &per_cpu(exynos4_cpuidle_device, cpu_id); |
215 | device->cpu = cpu_id; | 215 | device->cpu = cpu_id; |
216 | 216 | ||
217 | /* Support IDLE only */ | ||
218 | if (cpu_id != 0) | ||
219 | device->state_count = 1; | ||
220 | |||
221 | ret = cpuidle_register_device(device); | 217 | ret = cpuidle_register_device(device); |
222 | if (ret) { | 218 | if (ret) { |
223 | dev_err(&pdev->dev, "failed to register cpuidle device\n"); | 219 | dev_err(&pdev->dev, "failed to register cpuidle device\n"); |