Commit f1bbf5b
committed
cpufreq: intel_pstate: Rearrange freq QoS updates using __free()
Move the code from the for_each_possible_cpu() loop in update_qos_request()
to a separate function and use __free() for cpufreq policy reference
counting in it to avoid having to call cpufreq_cpu_put() repeatedly (or
using goto).
While at it, rename update_qos_request() to update_qos_requests()
because it updates multiple requests in one go.
No intentional functional impact.
Link: https://lore.kernel.org/linux-pm/CAJZ5v0gN1T5woSF0tO=TbAh+2-sWzxFjWyDbB7wG2TFCOU01iQ@mail.gmail.com/
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Zihuan Zhang <zhangzihuan@kylinos.cn>
Link: https://patch.msgid.link/3026597.e9J7NaK4W3@rafael.j.wysocki
[ rjw: Rename "cpu" to "cpudata" and "cpunum" to "cpu" in new code ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent 69e5d50 commit f1bbf5b
1 file changed
Lines changed: 28 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1652 | 1652 | | |
1653 | 1653 | | |
1654 | 1654 | | |
1655 | | - | |
| 1655 | + | |
1656 | 1656 | | |
| 1657 | + | |
1657 | 1658 | | |
1658 | | - | |
1659 | | - | |
| 1659 | + | |
1660 | 1660 | | |
1661 | | - | |
1662 | | - | |
1663 | | - | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
1664 | 1664 | | |
1665 | | - | |
1666 | | - | |
1667 | | - | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
1668 | 1668 | | |
1669 | | - | |
1670 | | - | |
1671 | | - | |
1672 | | - | |
1673 | | - | |
| 1669 | + | |
| 1670 | + | |
1674 | 1671 | | |
1675 | | - | |
1676 | | - | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
1677 | 1678 | | |
1678 | | - | |
1679 | | - | |
1680 | | - | |
1681 | | - | |
1682 | | - | |
1683 | | - | |
| 1679 | + | |
1684 | 1680 | | |
1685 | | - | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
1686 | 1684 | | |
1687 | | - | |
1688 | | - | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
1689 | 1688 | | |
1690 | | - | |
1691 | | - | |
| 1689 | + | |
| 1690 | + | |
1692 | 1691 | | |
1693 | 1692 | | |
1694 | 1693 | | |
| |||
1717 | 1716 | | |
1718 | 1717 | | |
1719 | 1718 | | |
1720 | | - | |
| 1719 | + | |
1721 | 1720 | | |
1722 | 1721 | | |
1723 | 1722 | | |
| |||
1751 | 1750 | | |
1752 | 1751 | | |
1753 | 1752 | | |
1754 | | - | |
| 1753 | + | |
1755 | 1754 | | |
1756 | 1755 | | |
1757 | 1756 | | |
| |||
0 commit comments