diff options
| author | Marcelo Tosatti <[email protected]> | 2019-07-03 20:51:27 -0300 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2019-07-30 17:27:37 +0200 |
| commit | 7d4daeedd575bbc3c40c87fc6708a8b88c50fe7e (patch) | |
| tree | 6d7dc0087f66e09fe2a7d1752ab657b56ee9d075 /include | |
| parent | 259231a045616c4101d023a8f4dcc8379af265a6 (diff) | |
governors: unify last_state_idx
Since this field is shared by all governors, move it to
cpuidle device structure.
Signed-off-by: Marcelo Tosatti <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/cpuidle.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index b484dd69ec21..ba535a1a47d5 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h @@ -85,6 +85,7 @@ struct cpuidle_device { unsigned int cpu; ktime_t next_hrtimer; + int last_state_idx; int last_residency; u64 poll_limit_ns; struct cpuidle_state_usage states_usage[CPUIDLE_STATE_MAX]; |