OSDN Git Service

cpuidle: teo: Exclude cpuidle overhead from computations
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 12 Nov 2019 09:51:16 +0000 (10:51 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Nov 2019 21:31:17 +0000 (22:31 +0100)
commitb6495b7f004d01b9ecf9ed5fd31368241d3c5589
tree5208fe669518fd05a4b761561e617902d4066e73
parentc1d51f684c72b5eb2aecbbd47be3a2977a2dc903
cpuidle: teo: Exclude cpuidle overhead from computations

One purpose of the computations in teo_update() is to determine
whether or not the (saved) time till the next timer event and the
measured idle duration fall into the same "bin", so avoid using
values that include the cpuidle overhead to obtain the latter.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/governors/teo.c