OSDN Git Service

governors: unify last_state_idx
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 3 Jul 2019 23:51:27 +0000 (20:51 -0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 30 Jul 2019 15:27:37 +0000 (17:27 +0200)
commit7d4daeedd575bbc3c40c87fc6708a8b88c50fe7e
tree6d7dc0087f66e09fe2a7d1752ab657b56ee9d075
parent259231a045616c4101d023a8f4dcc8379af265a6
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>
drivers/cpuidle/governors/ladder.c
drivers/cpuidle/governors/menu.c
drivers/cpuidle/governors/teo.c
include/linux/cpuidle.h