Since this field is shared by all governors, move it to cpuidle device structure.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -85,6 +85,7 @@ struct cpuidle_device { · 84 unmodified lines | |||
| 85 | unsigned int cpu; | 85 | unsigned int cpu; |
| 86 | ktime_t next_hrtimer; | 86 | ktime_t next_hrtimer; |
| 87 | 87 | ||
| 88 | int last_state_idx; | ||
| 88 | int last_residency; | 89 | int last_residency; |
| 89 | u64 poll_limit_ns; | 90 | u64 poll_limit_ns; |
| 90 | struct cpuidle_state_usage states_usage[CPUIDLE_STATE_MAX]; | 91 | struct cpuidle_state_usage states_usage[CPUIDLE_STATE_MAX]; |