Commit ffb7e01
tick/nohz: Remove duplicate between tick_nohz_switch_to_nohz() and tick_setup_sched_timer()
The ts->sched_timer initialization work of tick_nohz_switch_to_nohz()
is almost the same as that of tick_setup_sched_timer(), so adjust the
latter to get it reused by tick_nohz_switch_to_nohz().
This also makes the low resolution mode sched_timer benefit from the tick
skew boot option.
Signed-off-by: Peng Liu <liupeng17@lenovo.com>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240225225508.11587-2-frederic@kernel.org1 parent 56c2cb1 commit ffb7e01
3 files changed
+20
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
750 | | - | |
| 750 | + | |
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1471 | 1471 | | |
1472 | 1472 | | |
1473 | 1473 | | |
1474 | | - | |
1475 | | - | |
1476 | | - | |
1477 | 1474 | | |
1478 | 1475 | | |
1479 | 1476 | | |
| |||
1482 | 1479 | | |
1483 | 1480 | | |
1484 | 1481 | | |
1485 | | - | |
| 1482 | + | |
1486 | 1483 | | |
1487 | | - | |
1488 | | - | |
1489 | | - | |
1490 | | - | |
1491 | | - | |
1492 | | - | |
1493 | | - | |
1494 | | - | |
| 1484 | + | |
1495 | 1485 | | |
1496 | 1486 | | |
1497 | 1487 | | |
| |||
1570 | 1560 | | |
1571 | 1561 | | |
1572 | 1562 | | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
1573 | 1566 | | |
| 1567 | + | |
1574 | 1568 | | |
1575 | 1569 | | |
1576 | 1570 | | |
| |||
1583 | 1577 | | |
1584 | 1578 | | |
1585 | 1579 | | |
| 1580 | + | |
1586 | 1581 | | |
1587 | | - | |
| 1582 | + | |
1588 | 1583 | | |
1589 | 1584 | | |
1590 | | - | |
1591 | 1585 | | |
1592 | 1586 | | |
1593 | 1587 | | |
1594 | | - | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
1595 | 1591 | | |
1596 | 1592 | | |
1597 | 1593 | | |
| |||
1604 | 1600 | | |
1605 | 1601 | | |
1606 | 1602 | | |
1607 | | - | |
1608 | | - | |
1609 | | - | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
1610 | 1609 | | |
1611 | | - | |
1612 | 1610 | | |
1613 | | - | |
1614 | 1611 | | |
1615 | 1612 | | |
1616 | 1613 | | |
| |||
1632 | 1629 | | |
1633 | 1630 | | |
1634 | 1631 | | |
1635 | | - | |
| 1632 | + | |
1636 | 1633 | | |
1637 | 1634 | | |
1638 | 1635 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
0 commit comments