Repository navigation
Commit dab2017
committed
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>1 parent 9ebcfad commit dab2017
1 file changed
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
| |||
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
145 | | - | |
| 143 | + | |
146 | 144 | | |
147 | 145 | | |
148 | 146 | | |
| |||
1562 | 1560 | | |
1563 | 1561 | | |
1564 | 1562 | | |
1565 | | - | |
| 1563 | + | |
1566 | 1564 | | |
1567 | 1565 | | |
1568 | 1566 | | |
| |||
1655 | 1653 | | |
1656 | 1654 | | |
1657 | 1655 | | |
1658 | | - | |
1659 | | - | |
1660 | | - | |
1661 | 1656 | | |
1662 | 1657 | | |
1663 | 1658 | | |
1664 | 1659 | | |
1665 | 1660 | | |
1666 | 1661 | | |
1667 | | - | |
| 1662 | + | |
1668 | 1663 | | |
1669 | 1664 | | |
1670 | 1665 | | |
| |||
0 commit comments