Commit 0f2828e
committed
cpufreq: intel_pstate: Get rid of unnecessary READ_ONCE() annotations
Drop two redundant checks involving READ_ONCE() from notify_hwp_interrupt()
and make it check hwp_active without READ_ONCE() which is not necessary,
because that variable is only set once during the early initialization of
the driver.
In order to make that clear, annotate hwp_active with __ro_after_init.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent 432acb2 commit 0f2828e
1 file changed
Lines changed: 5 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| |||
1636 | 1636 | | |
1637 | 1637 | | |
1638 | 1638 | | |
1639 | | - | |
1640 | 1639 | | |
1641 | 1640 | | |
1642 | 1641 | | |
1643 | | - | |
| 1642 | + | |
1644 | 1643 | | |
1645 | 1644 | | |
1646 | 1645 | | |
| |||
1652 | 1651 | | |
1653 | 1652 | | |
1654 | 1653 | | |
1655 | | - | |
1656 | | - | |
1657 | | - | |
1658 | | - | |
1659 | | - | |
1660 | | - | |
1661 | | - | |
1662 | | - | |
1663 | | - | |
1664 | | - | |
1665 | | - | |
1666 | | - | |
1667 | | - | |
1668 | | - | |
1669 | | - | |
1670 | | - | |
1671 | | - | |
1672 | | - | |
| 1654 | + | |
| 1655 | + | |
1673 | 1656 | | |
1674 | 1657 | | |
1675 | 1658 | | |
| |||
3464 | 3447 | | |
3465 | 3448 | | |
3466 | 3449 | | |
3467 | | - | |
| 3450 | + | |
3468 | 3451 | | |
3469 | 3452 | | |
3470 | 3453 | | |
| |||
0 commit comments