intel_idle: Eliminate redundant static variable
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 29 Jun 2020 11:58:28 +0000 (13:58 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 29 Jun 2020 11:58:28 +0000 (13:58 +0200)
commitdab20177b626198603176604c0f85ea1d67044ef
tree5720bb93323c2257a35ac096e2cb308c21938479
parent9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68
intel_idle: Eliminate redundant static variable

The value of the lapic_timer_always_reliable static variable in
the intel_idle driver reflects the boot_cpu_has(X86_FEATURE_ARAT)
value and so it also reflects the static_cpu_has(X86_FEATURE_ARAT)
value.

Hence, the lapic_timer_always_reliable check in intel_idle() is
redundant and apart from this lapic_timer_always_reliable is only
used in two places in which boot_cpu_has(X86_FEATURE_ARAT) can be
used directly.

Eliminate the lapic_timer_always_reliable variable in accordance
with the above observations.

No intentional functional impact.

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