diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/cpuidle.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index b51629e15cfc..8da811bcdbdb 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h | |||
| @@ -42,7 +42,7 @@ struct cpuidle_state { | |||
| 42 | unsigned long long time; /* in US */ | 42 | unsigned long long time; /* in US */ |
| 43 | 43 | ||
| 44 | int (*enter) (struct cpuidle_device *dev, | 44 | int (*enter) (struct cpuidle_device *dev, |
| 45 | struct cpuidle_state *state); | 45 | int index); |
| 46 | }; | 46 | }; |
| 47 | 47 | ||
| 48 | /* Idle State Flags */ | 48 | /* Idle State Flags */ |
| @@ -87,13 +87,12 @@ struct cpuidle_device { | |||
| 87 | int state_count; | 87 | int state_count; |
| 88 | struct cpuidle_state states[CPUIDLE_STATE_MAX]; | 88 | struct cpuidle_state states[CPUIDLE_STATE_MAX]; |
| 89 | struct cpuidle_state_kobj *kobjs[CPUIDLE_STATE_MAX]; | 89 | struct cpuidle_state_kobj *kobjs[CPUIDLE_STATE_MAX]; |
| 90 | struct cpuidle_state *last_state; | ||
| 91 | 90 | ||
| 92 | struct list_head device_list; | 91 | struct list_head device_list; |
| 93 | struct kobject kobj; | 92 | struct kobject kobj; |
| 94 | struct completion kobj_unregister; | 93 | struct completion kobj_unregister; |
| 95 | void *governor_data; | 94 | void *governor_data; |
| 96 | struct cpuidle_state *safe_state; | 95 | int safe_state_index; |
| 97 | 96 | ||
| 98 | int (*prepare) (struct cpuidle_device *dev); | 97 | int (*prepare) (struct cpuidle_device *dev); |
| 99 | }; | 98 | }; |
| @@ -169,7 +168,7 @@ struct cpuidle_governor { | |||
| 169 | void (*disable) (struct cpuidle_device *dev); | 168 | void (*disable) (struct cpuidle_device *dev); |
| 170 | 169 | ||
| 171 | int (*select) (struct cpuidle_device *dev); | 170 | int (*select) (struct cpuidle_device *dev); |
| 172 | void (*reflect) (struct cpuidle_device *dev); | 171 | void (*reflect) (struct cpuidle_device *dev, int index); |
| 173 | 172 | ||
| 174 | struct module *owner; | 173 | struct module *owner; |
| 175 | }; | 174 | }; |
