diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-02-06 18:40:54 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-02-11 23:34:57 +0100 |
commit | 40ab82e08d789d8f4437fec63142b40120c1c50f (patch) | |
tree | d1324c99fe2e2b139b175ea57ad8393c53dbe25b /scripts/gdb | |
parent | bb6d3fb354c5ee8d6bde2d576eb7220ea09862b9 (diff) | |
download | linux-40ab82e08d789d8f4437fec63142b40120c1c50f.tar.gz linux-40ab82e08d789d8f4437fec63142b40120c1c50f.tar.bz2 linux-40ab82e08d789d8f4437fec63142b40120c1c50f.zip |
intel_idle: Simplify LAPIC timer reliability checks
The lapic_timer_always_reliable variable really takes only two values
and some arithmetic in intel_idle() related to comparing it with the
target C-state's MWAIT hint value is unnecessary.
Simplify the code by replacing lapic_timer_always_reliable with
a bool variable lapic_timer_always_reliable and dropping the
LAPIC_TIMER_ALWAYS_RELIABLE symbol along with the excess
computations in intel_idle().
While at it, add a comment explaining the branch taken in intel_idle()
if the LAPIC timer is only reliable in C1 and modify the related debug
message in intel_idle_init() accordingly (the modification of this
message in the only expected functional impact of the change made
here).
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions