diff options
author | Len Brown <len.brown@intel.com> | 2014-12-16 01:52:06 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-12-17 02:26:28 +0100 |
commit | 4108b3d96273784f697dd6d8e59ef9203a10a02d (patch) | |
tree | 38e187ed6a4b853c43b601fde3bbc0d42962c902 /drivers/nfc | |
parent | 0c570c183ace73f06e42d65432bf938fbdde6524 (diff) | |
download | op-kernel-dev-4108b3d96273784f697dd6d8e59ef9203a10a02d.zip op-kernel-dev-4108b3d96273784f697dd6d8e59ef9203a10a02d.tar.gz |
cpuidle: menu: Better idle duration measurement without using CPUIDLE_FLAG_TIME_INVALID
When menu sees CPUIDLE_FLAG_TIME_INVALID, it ignores its timestamps,
and assumes that idle lasted as long as the time till next predicted
timer expiration.
But if an interrupt was seen and serviced before that duration,
it would actually be more accurate to use the measured time
rather than rounding up to the next predicted timer expiration.
And if an interrupt is seen and serviced such that the mesured time
exceeds the time till next predicted timer expiration, then
truncating to that expiration is the right thing to do --
since we can never stay idle past that timer expiration.
So the code can do a better job without
checking for CPUIDLE_FLAG_TIME_INVALID.
Signed-off-by: Len Brown <len.brown@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Tuukka Tikkanen <tuukka.tikkanen@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/nfc')
0 files changed, 0 insertions, 0 deletions