diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2019-07-04 02:51:27 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-07-30 18:27:37 +0300 |
commit | 7d4daeedd575bbc3c40c87fc6708a8b88c50fe7e (patch) | |
tree | 6d7dc0087f66e09fe2a7d1752ab657b56ee9d075 /include/linux/cpuidle.h | |
parent | 259231a045616c4101d023a8f4dcc8379af265a6 (diff) | |
download | linux-7d4daeedd575bbc3c40c87fc6708a8b88c50fe7e.tar.xz |
governors: unify last_state_idx
Since this field is shared by all governors, move it to
cpuidle device structure.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/cpuidle.h')
-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]; |