Commit 5e4304f
drivers/hv: introduce vmbus_channel_set_cpu()
The core functionality in target_cpu_store() is also needed in a
subsequent patch for automatically changing the CPU when taking
a CPU offline. As such, factor out the body of target_cpu_store()
into new function vmbus_channel_set_cpu() that can also be used
elsewhere.
No functional change is intended.
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Michael Kelley <mhklinux@outlook.com>
Cc: Wei Liu <wei.liu@kernel.org>
Signed-off-by: Hamza Mahfooz <hamzamahfooz@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Tested-by: Michael Kelley <mhklinux@outlook.com>
Link: https://lore.kernel.org/r/20250117203309.192072-2-hamzamahfooz@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20250117203309.192072-2-hamzamahfooz@linux.microsoft.com>1 parent 7c0db8a commit 5e4304f
2 files changed
Lines changed: 32 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1611 | 1611 | | |
1612 | 1612 | | |
1613 | 1613 | | |
1614 | | - | |
1615 | | - | |
| 1614 | + | |
| 1615 | + | |
1616 | 1616 | | |
1617 | | - | |
1618 | | - | |
| 1617 | + | |
| 1618 | + | |
1619 | 1619 | | |
1620 | | - | |
1621 | | - | |
| 1620 | + | |
| 1621 | + | |
1622 | 1622 | | |
1623 | | - | |
| 1623 | + | |
1624 | 1624 | | |
1625 | 1625 | | |
1626 | 1626 | | |
| |||
1630 | 1630 | | |
1631 | 1631 | | |
1632 | 1632 | | |
1633 | | - | |
1634 | | - | |
1635 | | - | |
1636 | | - | |
1637 | | - | |
| 1633 | + | |
1638 | 1634 | | |
1639 | | - | |
1640 | 1635 | | |
1641 | 1636 | | |
1642 | | - | |
| 1637 | + | |
1643 | 1638 | | |
1644 | 1639 | | |
1645 | 1640 | | |
1646 | 1641 | | |
1647 | 1642 | | |
1648 | | - | |
| 1643 | + | |
1649 | 1644 | | |
1650 | 1645 | | |
1651 | 1646 | | |
| |||
1660 | 1655 | | |
1661 | 1656 | | |
1662 | 1657 | | |
1663 | | - | |
1664 | 1658 | | |
1665 | 1659 | | |
1666 | 1660 | | |
1667 | 1661 | | |
1668 | 1662 | | |
1669 | 1663 | | |
1670 | 1664 | | |
1671 | | - | |
| 1665 | + | |
1672 | 1666 | | |
1673 | 1667 | | |
1674 | 1668 | | |
1675 | 1669 | | |
1676 | | - | |
| 1670 | + | |
1677 | 1671 | | |
1678 | 1672 | | |
1679 | 1673 | | |
1680 | 1674 | | |
1681 | | - | |
| 1675 | + | |
1682 | 1676 | | |
1683 | 1677 | | |
1684 | 1678 | | |
| |||
1708 | 1702 | | |
1709 | 1703 | | |
1710 | 1704 | | |
1711 | | - | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
1712 | 1721 | | |
1713 | 1722 | | |
1714 | | - | |
| 1723 | + | |
| 1724 | + | |
1715 | 1725 | | |
1716 | 1726 | | |
1717 | 1727 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1661 | 1661 | | |
1662 | 1662 | | |
1663 | 1663 | | |
| 1664 | + | |
1664 | 1665 | | |
1665 | 1666 | | |
1666 | 1667 | | |
| |||
0 commit comments