Repository navigation
Commit d4f7dae
timers: Spare timer softirq until next expiry
Now that the core timer infrastructure doesn't depend anymore on
periodic base->clk increments, even when the CPU is not in NO_HZ mode,
timer softirqs can be skipped until there are timers to expire.
Some spurious softirqs can still remain since base->next_expiry doesn't
keep track of canceled timers but this still reduces the number of softirqs
significantly: ~15 times less for HZ=1000 and ~5 times less for HZ=100.
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Juri Lelli <juri.lelli@redhat.com>
Link: https://lkml.kernel.org/r/20200717140551.29076-11-frederic@kernel.org1 parent 1f8a421 commit d4f7dae
1 file changed
Lines changed: 8 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1458 | 1458 | | |
1459 | 1459 | | |
1460 | 1460 | | |
1461 | | - | |
1462 | | - | |
| 1461 | + | |
| 1462 | + | |
1463 | 1463 | | |
1464 | | - | |
| 1464 | + | |
1465 | 1465 | | |
1466 | 1466 | | |
1467 | 1467 | | |
| |||
1684 | 1684 | | |
1685 | 1685 | | |
1686 | 1686 | | |
1687 | | - | |
1688 | | - | |
1689 | | - | |
1690 | | - | |
1691 | | - | |
1692 | | - | |
1693 | | - | |
1694 | | - | |
1695 | | - | |
1696 | | - | |
1697 | | - | |
1698 | | - | |
1699 | | - | |
1700 | | - | |
1701 | | - | |
1702 | | - | |
1703 | | - | |
1704 | | - | |
1705 | | - | |
1706 | | - | |
1707 | | - | |
1708 | | - | |
1709 | | - | |
1710 | | - | |
1711 | | - | |
1712 | | - | |
1713 | | - | |
1714 | | - | |
1715 | | - | |
1716 | | - | |
1717 | | - | |
1718 | | - | |
1719 | | - | |
1720 | | - | |
1721 | 1687 | | |
1722 | 1688 | | |
1723 | 1689 | | |
| |||
1750 | 1716 | | |
1751 | 1717 | | |
1752 | 1718 | | |
1753 | | - | |
| 1719 | + | |
1754 | 1720 | | |
1755 | 1721 | | |
1756 | 1722 | | |
| |||
1763 | 1729 | | |
1764 | 1730 | | |
1765 | 1731 | | |
1766 | | - | |
| 1732 | + | |
| 1733 | + | |
1767 | 1734 | | |
1768 | 1735 | | |
1769 | 1736 | | |
| |||
1798 | 1765 | | |
1799 | 1766 | | |
1800 | 1767 | | |
1801 | | - | |
| 1768 | + | |
1802 | 1769 | | |
1803 | 1770 | | |
1804 | 1771 | | |
1805 | 1772 | | |
1806 | | - | |
| 1773 | + | |
1807 | 1774 | | |
1808 | 1775 | | |
1809 | 1776 | | |
| |||
0 commit comments