diff options
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r-- | arch/sh/kernel/cpu/shmobile/cpuidle.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/sh/kernel/cpu/shmobile/cpuidle.c b/arch/sh/kernel/cpu/shmobile/cpuidle.c index 34bb5469c644..4b277016f0f5 100644 --- a/arch/sh/kernel/cpu/shmobile/cpuidle.c +++ b/arch/sh/kernel/cpu/shmobile/cpuidle.c | |||
@@ -63,9 +63,7 @@ void sh_mobile_setup_cpuidle(void) | |||
63 | struct cpuidle_device *dev = &cpuidle_dev; | 63 | struct cpuidle_device *dev = &cpuidle_dev; |
64 | struct cpuidle_driver *drv = &cpuidle_driver; | 64 | struct cpuidle_driver *drv = &cpuidle_driver; |
65 | struct cpuidle_state *state; | 65 | struct cpuidle_state *state; |
66 | int i; | 66 | int i = 0; |
67 | |||
68 | i = CPUIDLE_DRIVER_STATE_START; | ||
69 | 67 | ||
70 | state = &drv->states[i++]; | 68 | state = &drv->states[i++]; |
71 | snprintf(state->name, CPUIDLE_NAME_LEN, "C1"); | 69 | snprintf(state->name, CPUIDLE_NAME_LEN, "C1"); |
@@ -77,7 +75,7 @@ void sh_mobile_setup_cpuidle(void) | |||
77 | state->flags |= CPUIDLE_FLAG_TIME_VALID; | 75 | state->flags |= CPUIDLE_FLAG_TIME_VALID; |
78 | state->enter = cpuidle_sleep_enter; | 76 | state->enter = cpuidle_sleep_enter; |
79 | 77 | ||
80 | drv->safe_state_index = i-1; | 78 | drv->safe_state_index = 0; |
81 | 79 | ||
82 | if (sh_mobile_sleep_supported & SUSP_SH_SF) { | 80 | if (sh_mobile_sleep_supported & SUSP_SH_SF) { |
83 | state = &drv->states[i++]; | 81 | state = &drv->states[i++]; |